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

Scenario 5: Pattern Matching

You wish to find out the requests with a specific cookie in the request headers.

Listing 19

LogParser -i:IISW3C -o:DataGrid "SELECT cs-uri-stem,  sc-status as Status FROM  
ex080620.log WHERE like cs-cookie '%ASPSESSIONID%'"  -q:ON

Listing 20: Find requests with extension PNG

LogParser -i:IISW3C -o:DataGrid "SELECT cs-uri-stem,  sc-status as Status FROM  
ex080620.log WHERE cs-uri-stem like '%png%'"  -q:ON

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





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


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-10-10 3:42:14 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search