Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for samples on howto parse IIS log files. I am just getting started, and rather then search for site, I want personal recommendations how sample sites, sample code or a good book to get started down this learning path.

share|improve this question
up vote 1 down vote accepted

Might it be easier to work with LogParser?

share|improve this answer
Thanks for the pointer, I am familiar with LogParser, I heard you can use PowerShell for parsing logs as well, need some samples to get started. – user36440 Mar 4 '10 at 18:45

When I don't have logparser available, I've had luck with Select-String like in the example from Select-String uses regular expressions by default, so it is very powerful.

Get-ChildItem -Recurse -Include *.* | Select-String "text to search for"

I've also used the WebAdministration Module for Powershell to find the right log directory for the sites.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.