Open atc0005 opened 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/
Also applicable (if using Go to do the conversion):
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/