Read a file add to load testing file

I used this script to read a few months worth of my IIS logs to create a single log file.  I used the single file for load testing with Web Application Stress tool. 

$a = gci -Path C:inetpubiislogs3.comwwwlogstest -Filter *.log

foreach($file in $a)
{
             Write-Host “Processing – $file”
             $a = gc $file.FullName
             Add-Content -Path c:temploadtest.log -Value $a

}

Cheers,

Steve

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: