*nix Thread, Squid WARNING in Technical; logrotate is almost certainly already configured to run via cron. There will probably be a link to it in /etc/cron.daily.
7th April 2009, 11:31 AM #16
logrotate is almost certainly already configured to run via cron. There will probably be a link to it in /etc/cron.daily.
Assuming your logrotate.conf is in /etc, you can check your configuration by running 'logrotate -d /etc/logrotate.conf'. That will print a summary of what your config does.
To do a test rotate, run 'logrotate -f /etc/logrotate.conf'.
I've made my own reporting utilities so I'm not sure what SARG does, but if you have lots of reports building up there's no reason not to use logrotate to manage them.
IDG Tech News
7th April 2009, 11:41 AM #17
Using logrotate -d and logrotate -f produces the error:
error: /etc/logrotate.conf:36 duplicate log entry for /var/log/squid3/access.log
7th April 2009, 12:54 PM #18
It sounds like you already had logrotate set up to rotate access.log. The configuration is probably in an include file in the /etc/logrotate.d/ directory. You just need to rationalize where you're going to keep the config - either in logrotate.conf or in the include file.
Last Post: 10th October 2007, 03:12 PM
By srochford in forum How do you do....it?
Last Post: 13th April 2007, 01:53 PM
By localzuk in forum *nix
Last Post: 14th February 2007, 09:08 AM
By HodgeHi in forum Wireless Networks
Last Post: 1st November 2006, 12:02 PM
By Gatt in forum Wireless Networks
Last Post: 10th October 2006, 03:12 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)