操作系统:Ubuntu20.04.1 LTS日志表7.5.2-1 ubuntu1
对于logwatch,我有以下配置:
/etc/logwatch/conf/logwatch.conf
Output = mail
Detail = high
MailFrom = logwatch
Range = yesterday
Service = All/etc/logwatch/conf/logfiles/null.conf
LogFile = /dev/null/etc/logwatch/conf/services/sshd.conf
LogFile =
Logfile = null
*JournalCtl = "--output=cat --unit=ssh.service"我收到日志观察电子邮件,但它不包含任何ssh信息。
发布于 2020-08-04 07:37:09
在查看logwatch sourceforge站点中的一些旧的支持电子邮件并进行一些测试之后,以下设置有效:
/etc/logwatch/conf/logfiles/null.conf
LogFile = null.log用空行创建/var/log/null.log。
然后日志监视为ssh.service正确工作。
https://unix.stackexchange.com/questions/600500
复制相似问题