Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can anyone please share the procedure how to enable & disable the log-watch feature in Linux RHEL 5 machine.

Thanks in advance.

share|improve this question

closed as not a real question by dunxd, mdpc, Dave M, kce, Ward Apr 16 '13 at 2:51

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

Logwatch is usually started by cron.

Check directory /etc/cron.daily/ for a script which launches logwatch.

In RHEL there is a symlink /etc/cron.daily/0logwatch which points to /usr/share/logwatch/scripts/logwatch.pl

You can remove this link (0logwatch) from /etc/cron.daily to prevent logwatch from running every day:

rm /etc/cron.daily/0logwatch

To enable it back just create a symlink again:

ln -s /usr/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch
share|improve this answer
    
I am looking for enable procedure of log-watch in RHEL5.How to enable the log-watch.what is the exact procedure,need to follow to enable the log-watch. –  krish Apr 15 '13 at 16:50
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.