This post is a continuation of this article.
Scenario 9:Find out total count of different errors in your HTTP Error Log file on any IIS Server
Answer:
Logparser "select sc-status, s-reason, cs-uri, count(*) from 'FolderName\*.log' to 'FolderName\Total.csv' Group by s-reason, sc-status, cs-uri" -o:CSV -i:HTTPERR
If you want to just see the different types of errors coming up… use the following…
Logparser "select s-reason, count(*) from 'FolderName\*.log' to 'FolderName\Total.csv' Group by s-reason" -o:CSV -i:HTTPERR
Output: You can see the output as something below and decide to act on it appropriately…
Hope this helps...
Rahul
Quote of the day: The only way to make a man trustworthy is to trust him. - Henry Stimson