atc0005 / notes

Various notes, quick references and topics I want to explore further
MIT License
0 stars 0 forks source link

Converting timestamps in Nagios log messages to localtime #61

Open atc0005 opened 1 year ago

atc0005 commented 1 year ago

Found this example:

cat /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e'

earlier while looking for confirmation regarding what timestamp format I was looking at.

refs https://geekpeek.net/nagios-log-convert-timestamp/

atc0005 commented 1 year ago

Also applicable (if using Go to do the conversion):