ProFTPDでタイムアウトの設定を行っている場合以下のようなメッセージがログに記録されるようになります。タイムアウトのログ自体は見ても仕方がないのでLogWatchの通知メールから削除したときの覚書。
FTP session idle timeout, disconnected.
LogWatch設定ファイルの修正
# vi /etc/log.d/conf/services/proftpd-messages.conf
# Which logfile group...
LogFile = messages
*OnlyService = proftpd
*RemoveHeaders
*Remove = "FTP no transfer timeout, disconnected" << 追加
# Set this to 1 if you want to ignore unmatched FTP messages...
転送ファイルサイズなどのログも削除したい場合は先ほど設定した行の下に追加してください。
*Remove = "FTP no transfer timeout, disconnected"
*Remove = "MaxStoreFileSize"
動作確認
下記コマンドを入力するとlogwatchの実行結果をターミナルに出力します
# /etc/log.d/scripts/logwatch.pl --print
今後は上記のコマンドを出力された結果がメールで通知されるようになります。
参考サイト