Nagios log date conversion
- December 10th, 2014
- Posted in Documentation
- 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
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
No comments yet.