Skip to content

My Command Line

Commands made simple

Monthly Archives: September 2012

Running SARG for Squid Log Analysis and Reports

sarg -i -o /var/www/html/sarg -l /tmp/access.log

Posted byadminSeptember 28, 2012Posted inUncategorizedLeave a comment on Running SARG for Squid Log Analysis and Reports

Find and Display Text Between Two Strings or Words

# sed -n '/<VirtualHost*/,/<\/VirtualHost>/p' /etc/httpd/conf/httpd.conf

Posted byadminSeptember 13, 2012Posted inUncategorizedLeave a comment on Find and Display Text Between Two Strings or Words

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 ))

Posted byadminSeptember 13, 2012Posted inUncategorizedLeave a comment on Parse the squid log file to sum up all the request size

Recent Posts

  • Disable SELINUX from shell script
  • To retrieve the total GETs and B/w per minute from haproxy log
  • Replacing new line character
  • Get Total Used Bandwidth as per Status from Squid Log
  • To recover deleted files in Linux

Recent Comments

  • Makito39Yt41 on Determine block size of a disk

Archives

  • December 2019
  • May 2019
  • June 2017
  • January 2017
  • December 2016
  • March 2016
  • November 2013
  • September 2013
  • August 2013
  • November 2012
  • September 2012
  • August 2012
  • August 2011
  • July 2011

Categories

  • Linux
  • Uncategorized

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
My Command Line, Proudly powered by WordPress.