LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   logwatch detail (https://www.linuxquestions.org/questions/linux-newbie-8/logwatch-detail-746863/)

sopiaz57 08-11-2009 07:28 PM

logwatch detail
 
Hey guys,

running centos, i have a setting in my logwatch file (/usr/share/logwatch/default.conf/logwatch.conf) setting the detail level:

# The default detail level for the report.
# This can either be Low, Med, High or a number.
# Low = 0
# Med = 5
# High = 10
Default=High

However, when I look at the 0logwatch script in /etc/cron.daily i see a value:

$Config{'detail'} = 0;


Whats the best way to set my detail for logwatch scripts?

Thanks in advance!

unSpawn 08-11-2009 07:46 PM

/etc/cron.daily/0logwatch is a symlink to /usr/share/logwatch/scripts/logwatch.pl. As the location suggests /usr/share/logwatch/default.conf/logwatch.conf contains defaults. 'grep ^Read.*Conf /usr/share/logwatch/scripts/logwatch.pl' (aka read the Source, Luke) leads to 'locate logwatch.conf' which yields /etc/logwatch/conf/logwatch.conf which reads "# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf)". So the best way is to set "Detail = someValue" in /etc/logwatch/conf/logwatch.conf, is your answer.


All times are GMT -5. The time now is 10:04 AM.