LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-16-2009, 04:46 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,256

Rep: Reputation: 53
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!
 
Old 06-16-2009, 04:57 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 06-16-2009, 05:02 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,256

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by billymayday View Post
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!
 
Old 06-17-2009, 01:30 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Try /etc/crontab
 
Old 06-17-2009, 02:17 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to automatically monitor the e-mails from Logwatch, rkhunter, etc. MikeyCarter Linux - Software 1 08-07-2008 08:48 AM
Logwatch problem when run from cron lucktsm Linux - Software 5 04-05-2006 07:07 PM
Logwatch?? Palula Linux - Newbie 2 08-02-2005 08:14 PM
How to stop the redhat sending me e-mail called "LogWatch" automatically? chuanweizuo Red Hat 2 03-08-2005 09:19 AM
Logwatch miguel Linux - General 0 11-08-2002 05:15 AM


All times are GMT -5. The time now is 09:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration