Re: [squid-users] How to set /etc/logrotate.d/squid to have good sarg reports?

From: Sean Boran <sean_at_boran.com>
Date: Thu, 29 Nov 2012 14:42:19 +0100

Hi,

I also only do daily around 6h30, all from /etc/logrotate.d/squid:
/var/log/squid/*.log {
        daily
        prerotate
                sarg 2>&1 | logger
                /usr/lib/calamaris/calamaris-cron-script | logger
        endscript
        postrotate
                /etc/init.d/squid restart | logger
        endscript

Sean

On 29 November 2012 14:26, Helmut Hullen <Hullen_at_t-online.de> wrote:
> Hallo, Bartosz,
>
> you wrote to "[squid-users] How to set /etc/logrotate.d/squid to have good sarg reports?":
>
>>> My system runs the "sarg" reports at the end of the day, as a
>>> separate cronjob, and "logrotate" runs in the very early morning, as
>>> part of "cron.daily".
>>> Helmut
>
>> So how can you create weekly and monthly reports if you create every
>> day new log file?
>
> I create only daily reports.
>
> For quota etc. I use "squish".
>
>> And after rotating you are having only one day in log file, dont you?
>
> That's another problem; I've just seen that rotating doesn't work as
> expected ...
>
> Viele Gruesse!
> Helmut
Received on Thu Nov 29 2012 - 13:42:26 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 29 2012 - 12:00:05 MST