shell script + get count per hour

August 10, 2012 at 10:48:39
Specs: RedHat Linux
I need help with creating a report of getting count of requests per hr and per day from apache access log. I have tried the following

reqperhr=`awk '{print $4,$7}' $1 | grep -ivE '(.gif|.jpg|.png)' | cut -c 14-21 | cut -c 1-2 | sort | uniq -c`

Our apache log isnt rotated on a daily basis so its a huge logs which i have been trying to gather the report for.

See More: shell script + get count per hour

Report •

August 10, 2012 at 15:04:46
How about explaining your data file? What does field 4 and field 7 look like?

Report •
Related Solutions

Ask Question