Wednesday 16 October 2013

tailing the squid logs for hosts with the most sessions

tail -5000 /var/log/squid/access.log | grep 'website.name' | awk -F " " '{print $3}' | sort -nr | uniq -c | more

No comments:

Post a Comment