站点迁移到HTTPS后,对于访问站点的所有主机,Logwatch中将显示^ null $ -errors(连接closures,直到服务器收到响应)。
我怎样才能删除这个错误?
在Logwatch电子邮件报告中:
*.** MB transferred in 7645 responses (1xx 7645, 2xx 0, 3xx 0, 4xx 0, 5xx 0) ... ^null$ 2359 Time(s) ...
尝试添加. \^null\$. . \^null\$. 到/etc/logwatch/conf/ignore.conf 。
另一种方法是编辑scripts/services/http (默认情况下在/ usr / share / logwatch下),findmy @exploits = (然后删除符合'^null$'的行,但是将被覆盖在更新。
问题是错误的Apache日志格式。 我将apache2.conf文件更改为默认的日志格式,Logwatch开始正常工作:
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""