This shows you the differences between two versions of the page.
list_webserver_information [2013/11/20 15:28] root |
list_webserver_information [2013/11/20 15:36] (current) root |
||
---|---|---|---|
Line 30: | Line 30: | ||
awk '{print $1}' accept.log | sort | uniq -c | sort -n | awk '{print $1}' accept.log | sort | uniq -c | sort -n | ||
+ | |||
+ | ====== List Apache requests per day ====== | ||
+ | | ||
+ | awk '{print $4}' accept.log | cut -d: -f1 | uniq -c | ||
| | ||
====== List Apache requests per hour ====== | ====== List Apache requests per hour ====== | ||
grep "22/Nov" accept.log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c | grep "22/Nov" accept.log | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c | ||
+ | | ||
+ | |||