/var file system can overflow for the following reason:
# Are you using squid?
If so,
1. clean squid cache using the command : rm –rf /var/spool/squid/*
2. clean squid access log using the command : rm –rf /var/log/squid/*
Before cleaning, stop squid service using the command: service squid stop
OR killall -9 squid
Then start squid service using the command: service squid start
Monday, March 9, 2009
overflow in var file system | clean squid log files and squid cache
Friday, August 1, 2008
Use SARG with Apache on Fedora to Analysis Squid access log from a remote location
SARG is a powerful tool to analyse and to generator report from Squid access log.
Report can be generated in HTML format and it can be viewed from an Apache Web server easily.
To install sarg use the command "yum install sarg"
To use sarg, the command is sarg. Configuration file is "/etc/sarg/sarg.conf".
See the man pages of sarg for varoius options.
Once the report has been generated, I can place the report file(s) on Apache DocumentRoot.
Then can view it from a remote location.
Friday, March 7, 2008
block any URL or kyeword in squid
Block any URL or keyword in squid:
Create a text file "list.txt" in "/etc/squid/" directory.
Put the URLs or keywords in the file. One URL or keyword in a single line.
Put an ACL in "/etc/squid/squid.conf" like...
acl bannedurls url_regex -i "/etc/squid/list.txt"
Now put !listurls at the end of the acl "http_access allow ....."
Then restart squid daemon "service squid restart".