Hide Forgot
Description of problem: It used to be possible to configure /etc/logwatch/conf/logwatch.conf to have logwatch save it's output to a file instead of mailing to root. That no longer works in F15. Version-Release number of selected component (if applicable): logwatch-7.3.6-70.20110203svn25.fc15.noarch How reproducible: Always Steps to Reproduce: 1. install logwatch in F15 2. configure to save to file 3. run logwatch Actual results: Output is mailed to root and not saved to file. Expected results: Output should be saved to the configured file as in previous versions. Additional info: In previous versions to save logwatch output to a file required this line in /etc/logwatch/conf/logwatch.conf: Save "/path/to/file" That doesn't work in F15 but does in Fedora 14 (logwatch-7.3.6-60) and EL 6 (logwatch-7.3.6-49) and earlier. Comments in /usr/share/logwatch/default.conf/logwatch.conf suggest that this should work: Output = file Filename = /path/to/file but that doesn't work either. The best I can do is set MailTo to null, which sends output to stdout instead of mailing it but that's not the same as the previous behaviour.
Unlike earlier versions /etc/cron.daily/0logwatch includes specific command-line options that include "--output mail" which then override those in the various configuration files. If you change these options, does this do what you want?
Yes that works. Also with the "OPTIONS=" line commented out in the cron script, the configuration file options are now working as documented. Thanks -- Ian