CentOS 8 And Logwatch

Home » CentOS » CentOS 8 And Logwatch
CentOS 3 Comments

Hello I am trying to get logwatch working on CentOS 8. System is fully updated. Usually install minimal version and then add only necessary with yum.

On CentOS 7: install logwatch and get daily logwatch report on mail.

On CentOS 8: install logwatch but no way to get mail.

Am I doing something wrong? Or miss something?

Thanks in advance Blaz

3 thoughts on - CentOS 8 And Logwatch

  • Hmm, it works fine for me, both as a cron job and when run directly. My system was last patched about 2 hours ago.

    Are you getting any mail?

    $ mail mail Subject: test test
    ^D
    $

    If you get no message then logwatch isn’t your issue. Next check your cron file, it ought to be in /etc/cron.daily/0logwatch

    Ensure that LOGWATCH_SCRIPT actually points to the code (typically
    /usr/sbin/logwatch)

    Check that the line for the following line:
    OPTIONS=”–output mail”

    The actual invocation on my system is:
    $LOGWATCH_SCRIPT –range=”between $day and yesterday” $OPTIONS

    As a final resort, edit 0logwatch and add the line “set -vx” just above the invocation. This will generate output which cron will attempt to send to root.

    Regards, Martin


    J Martin Rushton MBCS

  • Looks like Postfix is no longer mandatory, I have to explicitly add it to my minimal kickstart whereas with 7, that was not the case.

    Check if you even have a local mta installed.

    jlc