Forum Moderators: DixonJones
When you state
logparser "select count(date) from *.log* where referer LIKE '%referrer.com%'"
I'm not sure of what syntax it's looking for the date in. And I'm probably doing some other things wrong too.
Here's my latest attempt: at the DOS command prompt, at the c:\program files\log parser level, I type this:
logparser "select count(2003-03-03) from c:\access.log where referer LIKE '%something.com%'"
What am I missing? Does the access log need to be on in the c:\program files\log parser directory?
Any further help you can provide on exact syntax and proper paths I would deeply appreciate. Thanks.
Then I just change directory using dos to get in the folder, that way everything is relative to the current folder.
You need to SElect fields from the log file e.g date, ip, user agents etc. I think what you are trying is:
logparser "select count(*)
from c:/access.log
where date ='%2003-03-03%' and referer LIKE '%something.com%'"
Beware select * is v slow on big logfiles.
The syntax is very straightfoward, it is more or less Jet SQL. The only docs I know are the word doc on the download page
HTH