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
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
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/