Nagios log rotation query
Posted: Sat Dec 15, 2018 2:23 am
Hi Team,
I would like to know about the nagios.log. I have noticed that every hour logs are rotated and moved the directory archives. This logs are rotated every hour as it is configured as "log_rotation_method=h".
-rw-r--r-- 1 nagios nagios 219K Dec 15 10:59 nagios-12-15-2018-11.log
-rw-r--r-- 1 nagios nagios 249K Dec 15 11:59 nagios-12-15-2018-12.log
[root@prod-nagios archives]#
Now my queries is:
2. I want to roatate logs for ever 15 minutes and keep retention for 30 days.
Regards,
Rituraj
I would like to know about the nagios.log. I have noticed that every hour logs are rotated and moved the directory archives. This logs are rotated every hour as it is configured as "log_rotation_method=h".
-rw-r--r-- 1 nagios nagios 219K Dec 15 10:59 nagios-12-15-2018-11.log
-rw-r--r-- 1 nagios nagios 249K Dec 15 11:59 nagios-12-15-2018-12.log
[root@prod-nagios archives]#
Now my queries is:
2. I want to roatate logs for ever 15 minutes and keep retention for 30 days.
Regards,
Rituraj