CentOS 5 | Apache 2.2.3 | LogWatch 7.3
大家好,
我有Apache运行CentOS盒子,并承载多个VirtualHosts。 每个虚拟主机都有一个单独的访问日志。 例如:
/var/log/httpd/example.foo.com-access_log /var/log/httpd/downloads.foo.com-access_log
主站点正在将日志写入/ var / log / httpd / access_log。
LogWatch似乎只是检查主要的日志文件。 我怎么能告诉它包括其他文件呢?
我以为在/ usr / share / logwatch / scripts / services / http中可能有一个指针,但是我没有看到它。
有什么想法吗?
-M
您提供的日志文件应该被选中,而不需要进行任何更改,因为这是默认configuration
LogFile = httpd/*access_log LogFile = apache/*access.log.1 LogFile = apache/*access.log LogFile = apache2/*access.log.1 LogFile = apache2/*access.log LogFile = apache-ssl/*access.log.1 LogFile = apache-ssl/*access.log
但是你想更具体的你可以在/ etc / logwatch / conf中创build一个configuration文件,例如/etc/logwatch/conf/logfiles/http.conf
Logfile = /var/log/httpd/downloads.foo.com-access_log ... ...