Wednesday, March 12, 2014

Grepping apache access_log for number of unique hits by the hour

$grep "11/Mar" access_log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c


No comments:

Post a Comment