*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, 10: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?
16th April 2008, 10: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, 10: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, 01:49 PM
By Little-Miss in forum General Chat
Last Post: 14th October 2007, 02:15 PM
By srochford in forum How do you do....it?
Last Post: 13th April 2007, 12:53 PM
By alonebfg in forum Wireless Networks
Last Post: 23rd November 2006, 09:37 AM
By Simcfc73 in forum General Chat
Last Post: 3rd July 2006, 11:50 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)