Logwatch for Apache virtualhost

バーチャルホストな環境でのLogwatch(ログウォッチ)設定。

cp /usr/share/logwatch/default.conf/logfiles/http.conf /etc/logwatch/conf/logfiles
vi /etc/logwatch/conf/logfiles/httpd.conf

LogFile = /var/vhosts/*/logs/*access.log

などとする。環境に合わせて書き換える。

logwatch --print --service http

最後にチェック。