Search Results

Search: Posts Made By: gman2010
2,202
Posted By mirni
grep -c GetID ...
grep -c GetID /opt/Apache/logs/access_log.11-04-2011

Will count lines containing GetID

Stick it into a loop to count the different patterns:

log=/opt/Apache/logs/access_log.11-04-2011...
2,202
Posted By rdcwayx
$ awk -F \/ '{a[$4]++}END{for (i in a) print i "...
$ awk -F \/ '{a[$4]++}END{for (i in a) print i " : " a[i]}' /opt/Apache/logs/access_log.11-04-2011

SearchModem_V2 : 1
GetID : 1
SearchAccount_V2 : 1
BillingCode : 1
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy