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 using logparser 2.2 and need a script that does two things:

  1. finding urls that contain a value within referer
  2. need to loop over 30 folders

logparser -rpt:-1 "select count(*)INTO feeds.txt from u_ex100302*.log where to_lowercase(cs(Referer)) like '/feeds%'"

share|improve this question
up vote 0 down vote accepted

for (1,2,3) do logparser "select count(*)INTO feeds.txt from %%i\u_ex100302*.log where to_lowercase(cs(Referer)) like '/feeds%%'"

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.