[Logwatch] Fwd: specific cron log file definition does not work

Kirk Bauer kirk at kaybee.org
Tue Oct 24 07:33:19 MST 2006


Unfortunately I have a plane to catch, so let's see if anybody on the
list can help. I notice that in the "Archive" section you need to use
the "Archive" command, not the "LogFile" command, but I don't believe
that is the source of your problems.

---------- Forwarded message ----------
From: mnaud at libertysurf.fr <mnaud at libertysurf.fr>
Date: Oct 24, 2006 1:18 AM
Subject: specific cron log file definition does not work
To: logwatch-bugs <logwatch-bugs at logwatch.org>


morning,

i just want to submit a bug regarding logwatch ver 7.3.1.

the analyse of cron daemon log does not permit specific
definition in /etc/logwatch/conf/logfiles/cron.conf ... all
what is put in this file is definitly ignore during the
logwatch analyse.

i have done the same configuration for mail, syslog and
personnal specifics logs : all is OK only cron does not load
correctly the local configuration.

the solution is to modify the original file
(/usr/share/logwatch/default.conf/logfiles/cron.conf).

example :
cat /etc/logwatch/conf/logfiles/cron.conf
LogFile = cron/info
LogFile = cron/warnings
LogFile = cron/errors

# If the archives are searched, here is one or more line
# (optionally containing wildcards) that tell where they are...
Archive = cron/info.*
LogFile = cron/warnings.*
LogFile = cron/errors.*

*OnlyHost
*RemoveService = anacron

------------------
logwatch --print --service cron
cat: /var/log/cron: Is a directory
-------------------
if i modify
/usr/share/logwatch/default.conf/logfiles/cron.conf then all
is ok

for example :
logwatch --print --service cron --range all

 ################### Logwatch 7.3.1 (09/15/06)
####################
       Processing Initiated: Tue Oct 24 10:16:58 2006
       Date Range Processed: all
     Detail Level of Output: 0
             Type of Output: unformatted
          Logfiles for Host: XXXXXXXXXXX

##################################################################

 --------------------- Cron Begin ------------------------

 MAIL sending errors 932 Time(s)

 ---------------------- Cron End -------------------------


 ###################### Logwatch End #########################

----------------------
regards.
mna.


--------------------- ALICE SECURITE ENFANTS ---------------------
Protégez vos enfants des dangers d'Internet en installant Sécurité
Enfants, le contrôle parental d'Alice.
http://www.aliceadsl.fr/securitepc/default_copa.asp





-- 
Kirk Bauer <kirk at kaybee.org>
http://linux.kaybee.org | www.autorpm.org | www.logwatch.org



More information about the Logwatch mailing list