

DTI ServersMan@VPS(CentOS7)のログ監視方法(logwatch)です。
logwatchとは、サーバのログを分かりやすくメールで送信してくれるソフトウェアです。
本ページの目次
yum install logwatch
/etc/cron.dailyに0logwatchが作成されました。
cat /etc/logwatch/conf/logwatch.conf
デフォルトは「/usr/share/logwatch/default.conf/logwatch.conf」との記載が有りました。
cat /usr/share/logwatch/default.conf/logwatch.conf
メール送信先のみ変更しました。
vi /etc/logwatch/conf/logwatch.conf
MailTo = 送信先メールアドレス
/etc/cron.daily/0logwatch
正しくメール受信できました。
↓現在、この467円のServersManのVPSを使用しています。
サーバを色々操作できてこの安さは凄いと思います。
色々なサーバ(メール、DNS等)を作りましたが、結構快適です。
![]()