Logwatch Email Report Sent Twice Every Day

Hello,

My cronjob for logwatch looks like this:

m h dom mon dow command

0 1 * * * /usr/sbin/logwatch

Root is the only user who can run crons. But I get it twice every day within about 20 minutes of each other instead of just once. It's a dupe report of course. Does anyone have any clues as to why it is sent twice?

Best regards

Jacqueline

2 Replies

Check /etc/cron.d and /etc/cron.daily for logwatch entries.

Ahh. Thank you I found it in the cron.daily directory: 00logwatch

#!/bin/bash

#Check if removed-but-not-purged
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0

#execute
/usr/sbin/logwatch --output mail

#Note: It's possible to force the recipient in above command
#Just pass --mailto address@a.com instead of --output mail

Thank you.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct