Page 1 of 1

log time stamps

Posted: Mon Feb 20, 2017 6:39 pm
by sflennik
Currently the nagios logs use the unix timestamp. Can I configure nagios to use utc instead? Something like 2017-01-22T07:39:32Z instead of [1485070772]?

I've seen the perl code to convert timestamps to human readable but I don't want to do this step.

Re: log time stamps

Posted: Tue Feb 21, 2017 11:42 am
by mcapra
Not really beyond parsing the logs. The unix timestamp is used by several processes on the back-end of Nagios Core, so altering the state of the log file to use an ISO 8601 timestamp or similar formats would need to be accounted for in several other components of Nagios Core, not just the log file.