Re: [Nagios-users] nagios log file date format

2009-07-16 Thread Israel Brewster
On Jul 15, 2009, at 8:23 AM, Chris Waters wrote: You could do something like this: Replace the paths to reflect your environment. tail -f /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e' or grep 'something important to look for' somelogfilewithepochtimestamps.log | perl

Re: [Nagios-users] nagios log file date format

2009-07-15 Thread Marc Powell
On Jul 15, 2009, at 11:10 AM, shadih rahman wrote: > Is there any way to change nagios log file date format to human > readable format. I did not see any option in nagios.cfg file. > Please advise on this. Thanks http://support.nagios.com/knowledge-base/index.php?option=com_content&view=a

Re: [Nagios-users] nagios log file date format

2009-07-15 Thread Chris Waters
You could do something like this: Replace the paths to reflect your environment. tail -f /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e' or grep 'something important to look for' somelogfilewithepochtimestamps.log | perl -pe 's/(\d+)/localtime($1)/e' or perl -pe 's/