qmail log files with correct timestamps

Qmail log file uses TAI64N time format. The first sixteen hex digits represent a 64-bit number which counts how many seconds have passed since the beginning of 1970, while the remaining eight hex digits are a 32-bit number which counts nanoseconds since the beginning of the second.

Here is how do correctly view log files with timestamps?

tai64nlocal < /var/log/qmail/qmail-send/current or
tail -f /var/log/qmail/qmail-smtpd/current | tai64nlocal


No comments: