User Tools

Site Tools


apache:status:web_connections_per_hour

Apache - Status - Web connections per hour

This is a bash oneliner to show Apache web connections per hour.

  • It lists the IPs that have accessed the webserver and the amount of accesses.
# cat /var/log/apache2/access_log_pario.no | grep "21/Jan/2008:.." | awk {' print $4":"$1 '} | sed 's/\[//g' | awk -F : {' print $1":"$2"\t\t"$5 '} | sort | uniq -c

returns:

37 21/Jan/2008:00          192.168.0.10

NOTE: This shows that it had 37 hits from 00:00 – 01:00 in 20th February 2008.

apache/status/web_connections_per_hour.txt · Last modified: 2023/07/17 11:46 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki