Logwatchの出力順を変更する方法

Logwatchからメールで送られてくるサービスごとのログ情報の順番を入れ替える方法です。

# 順番を入れ替えたいサービスの設定ファイルをコピー
$ cp /usr/share/logwatch/default.conf/services/sshd.conf /etc/logwatch/conf/services/
# vi /etc/logwatch/conf/services/sshd.conf

設定ファイルに以下を記載

# 表示順を0から1の範囲で設定。0が先頭。デフォルトは0.5
DisplayOrder=0.1
LINEで送る
Pocket

タグ: ,