Using LogParser 2.2 to Parse IIS Logs and Other Logs
page 4 of 13
by Sudeep G
Feedback
Average Rating: 
Views (Total / Last 10 Days): 93477/ 244

Scenario 2: Filtering

Now, let us say you want to trace requests from a specific client IP:

Listing 12

LogParser "SELECT * FROM ex080620.log WHERE c-ip='10.253.209.17'" -i:IISW3C -q:ON 
-o:datagrid

You can extend this further to trace requests from a specific client IP during a specific date range.

Listing 13

LogParser "SELECT * FROM ex080620.log WHERE date > '2008-06-19' AND date < 
'2008-07-22'" -i:IISW3C -q:ON -o:datagrid

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2020 ASPAlliance.com  |  Page Processed at 2020-03-29 8:41:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search