The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z).
to convert epoch time:
perl -le ‘print scalar localtime $ARGV’ 1510686308
Tue Nov 14 14:05:08 2017
to See nagios logs in Human Readable Format:
log | perl -pe 's/(\d+)/localtime($1)/e'