Logrotateの設定 Logrotateは、Linuxシステムで広く使用されているログファイルの管理ツールです。 サーバーやシステムが生成するログファイルは、時間の経過とともに大きくなり、ディスクスペースを圧迫することがあります。 Logrotateは、これらのログファイルを自動的にローテート、圧縮、削除、またはアーカイブすることで、ディスクスペースを効率的に使用できます。 OSやサービスの再起動は不要。 Logrotateの設定は、主に/etc/logrotate.confと/etc/logrotate.d/ディレクトリ内のファイルで行われます。 現在の設定内容(***はログファイル名) cat /etc/logrotate.d/*** /var/log/***.log { missingok ログが存在していなくても処理続行(エラーにしない) daily 1日周期で実行 cop