Nagios log date conversion
- December 10th, 2014
- Write comment
To convert the nagios date timestamp in the nagios.log to a standard time format, use:
perl -pe ‘s/(\d+)/localtime($1)/e’ /var/log/nagios3/nagios.log
Archive for December, 2014
To convert the nagios date timestamp in the nagios.log to a standard time format, use:
perl -pe ‘s/(\d+)/localtime($1)/e’ /var/log/nagios3/nagios.log