Determine Most Active Site
On a server with many domains it can be difficult to determine which sites are taking the most traffic. Here’s a one-line that will generate a nice report:
|
1 2 3 |
find /var/log/httpd/ -name '*access.log' | \ xargs grep --color `date +%d/%b` | \ cut -d: -f1 | uniq -c | sort -n -r |
This assumes that (a) log files are in /var/log/httpd, (b) log




