LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Does logwatch run automatically? How can I reset logwatch? (https://www.linuxquestions.org/questions/linux-software-2/does-logwatch-run-automatically-how-can-i-reset-logwatch-733449/)

abefroman 06-16-2009 04:46 PM

Does logwatch run automatically? How can I reset logwatch?
 
Does logwatch run automatically, or do I need to make a cron entry for it?

How can I reset logwatch? When I run logwatch from the command line twice, it sends the same email twice.

TIA!

billymayday 06-16-2009 04:57 PM

By default, logwatch runs though yesderday's logs, as per the seting in the main logwatch.conf (on CentOS it's in /usr/share/logwatch/default.conf/logwatch.conf), and you can change the setting to "today, "yeaterday" or "all".

You don't reset it per se.

abefroman 06-16-2009 05:02 PM

Quote:

Originally Posted by billymayday (Post 3576389)
By default, logwatch runs though yesderday's logs, as per the seting in the main logwatch.conf (on CentOS it's in /usr/share/logwatch/default.conf/logwatch.conf), and you can change the setting to "today, "yeaterday" or "all".

You don't reset it per se.

Thanks! I see that.

And I see that 0logwatch is in cron.daily/, at what time will that run?

TIA!

chrism01 06-17-2009 01:30 AM

Try /etc/crontab

billymayday 06-17-2009 02:17 AM

Mine runs at 4.02am, but note from my previous response that it works on a day, not the previous 24hr period. See for example:
Code:

################### Logwatch 7.3 (03/24/06) ####################
        Processing Initiated: Wed Jun 17 04:02:03 2009
        Date Range Processed: yesterday
                              ( 2009-Jun-16 )
                              Period is day.



All times are GMT -5. The time now is 10:20 PM.