Dear friends
I am use the squid proxi server , but i m faceing one prob that squid generated log file in /var/log/squid (access.log,cache.log,store.log) this all r use the hard disk , so plz help me how i stop generated those log file .
thanks & waiting for u r reply
--------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
On Fri, Jul 04, 2003 at 05:19:00AM -0700, koushik lahiri wrote:
I am use the squid proxi server , but i m faceing one prob that squid generated log file in /var/log/squid (access.log,cache.log,store.log) this all r use the hard disk , so plz help me how i stop generated those log file .
Its generally not a good idea to stop generation of log files by server processes. What you should do instead is use the utility called "logrotate" that automatically maintains logfile size. Use "cron" to setup a daily or weekly job that will invoke logrotate.
On a standard RedHat installation, logrotate would already be setup as a cron job. All you need to do is create a suitable conf file in /etc/logrotate.d/ for the squid log files.
"man logrotate" for more information.
Sameer.
Hi,
First and Foremost R T F M.... !!!!
Then edit the squid.conf file which lies under /etc/squid.conf or /etc/squid/squid.conf or /usr/local/squid/etc/squid.conf
find the directives as below
you do not want the access.log file to be made then just change the line below to look like the following
cache_access_log /var/log/squid/access.log << original line cache_access_log none << modify the line as below
same needs to be done for the other type of logs
cache_log none << to disable cache.log file cache_store_log none << to disable store.log file
hope this helps
or try more at
thanks Ripunjay Bararia
-----Original Message----- From: linuxers-bounces@mm.ilug-bom.org.in [mailto:linuxers-bounces@mm.ilug-bom.org.in]On Behalf Of koushik lahiri Sent: Friday, July 04, 2003 17:49 To: linuxers@ilug-bom.org.in Subject: [ILUG-BOM] Re . squid help
Dear friends
I am use the squid proxi server , but i m faceing one prob that squid generated log file in /var/log/squid (access.log,cache.log,store.log) this all r use the hard disk , so plz help me how i stop generated those log file .
thanks & waiting for u r reply
---------------------------------------------------------------------------- -- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.