システムログ(SYSLOG)の動作設定ファイル「/etc/syslog.conf」では、ログファイル名の頭に「-」を付加させると、ログファイルへの書き出しの場合にある程度メモリに貯めてから行われるようになる。
これにより、ディスクアクセス頻度を軽減させる方法の1つになるだろう。
# cat /etc/syslog.conf # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none /var/log/messages # The authpriv file has restricted access. authpriv.* -/var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog 〜以下略〜 |
Copyright © ITmedia, Inc. All Rights Reserved.