Top Page: メイン
Previous Page: 研修
Next Page: だだちゃ豆

ログローテート失敗

サーバのログを毎月ローテートさせバックアップを予定しているのだが、1日に実行されるログのローテートがうまく動いていなかったようだ。
原因は設定ファイルの記載ミス。月次処理の予定が週次処理になっていた。

設定ファイルを変更。
  /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
monthly

# keep 4 weeks worth of backlogs
rotate 13

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

Trackback Pings

TrackBack URL for this entry:

No trackbacks found.

Comments

No comments found.

Post a Comment

Remember personal info?

Search this site