*nix Thread, Would like Squid Daily Logs to be pruned in Technical; Apoloiges I should have put this on my previous post which is to do with Squid.
This question isn't really ...
16th April 2008, 11:28 AM #1
Would like Squid Daily Logs to be pruned
Apoloiges I should have put this on my previous post which is to do with Squid.
This question isn't really a problem its more of how we could do it
We have noticed that in var/log/squid that we have all the logs for access to the internet by all users in school.
This is very handy but at the moment we find it stores 7 days worth of usage in 1 log file.
Is there a way we can create a log file for each day rather than 1 log for 7 days and also ask it to delete old log files in the process?
IDG Tech News
16th April 2008, 11:39 AM #2
I noted you mentioned Gentoo on another post so this may be relevant.
logrotate can be used in this instance.
Check the bottom of this link for info on how to give it a go.
Probably not for the feint hearted unless you've got a good backup/linux techy.
16th April 2008, 11:42 AM #3
Here's my logrotate config for squid (stock Debian, but tweaked to keep 4 weeks worth).
# Logrotate fragment for squid.
create 644 proxy proxy
test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint
test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
By Joanne in forum Jokes/Interweb Things
Last Post: 12th February 2008, 02:49 PM
By Little-Miss in forum General Chat
Last Post: 14th October 2007, 03:15 PM
By srochford in forum How do you do....it?
Last Post: 13th April 2007, 01:53 PM
By alonebfg in forum Wireless Networks
Last Post: 23rd November 2006, 10:37 AM
By Simcfc73 in forum General Chat
Last Post: 3rd July 2006, 12:50 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)