[Logwatch] Weekly and monthly reports?

Bjorn L. bl_logwatch2 at mblmail.net
Sun Oct 14 18:23:20 MST 2007



hvdkooij at vanderkooij.org wrote:
> Anders Fosgerau wrote:
>> With Logwatch 7.3.4 on my FC7 box with the perl-DateManip-5.44-3.fc7 rpm and 
>> logwatch.conf containing "Range = -7 days", the output seems fine to me:
>>
>>  ################### Logwatch 7.3.4 (02/17/07) ####################
>>         Processing Initiated: Sun Oct 14 04:49:50 2007
>>         Date Range Processed: -7 days
>>                               ( 2007-Oct-07 )
>>                               Period is day.
>>
>> However the "Period is day" comment is a bit misleading... Except for this, 
>> logwatch seems to do a fine job (as always).
> 
> With logwatch 7.3.6 this is just a daily report. 

Hugo is correct.  '-7 days' means the same as '7 days ago', and will
only process the logs for that one day.


On my Centos 5 machine
> the following seems to do the job for a weekly report:
> 
> logwatch --service postfix --range "between -7 days and -1 days"
> 
>  ################### Logwatch 7.3.6 (05/19/07) ####################
>         Processing Initiated: Sun Oct 14 23:34:21 2007
>         Date Range Processed: between -7 days and -1 days
>                               ( 2007-Oct-07 / 2007-Oct-13 )
> 
> The same command on a Centos 4.5 machine with the same version of
> logwatch sends it in some manic mode sending me a number of full command
> line instructions blended with some parts of a logwatch report.
> 
> So it seems the results are rather unpredicatable as they depend too
> much on other factors.

That is unexpected.  Does it print the header (the part shown in your
example, with the 'Processing Initiated' and 'Date Range Processed'
lines)?  If so, what do they say?  Also, using '--debug 6' should
give more hints as to what the date routines are doing.  You can
send me log output privately.


More information about the Logwatch mailing list