sarg -i -o /var/www/html/sarg -l /tmp/access.log
Monthly Archives: September 2012
Find and Display Text Between Two Strings or Words
# sed -n '/<VirtualHost*/,/<\/VirtualHost>/p' /etc/httpd/conf/httpd.conf
Parse the squid log file to sum up all the request size
echo $(( $(cat /var/log/squid/access.log | grep -v "DENIED" | awk '{print $5}' | tr '\n' '+' ) 0 ))