Parsing Qmail Logs
Yesterday I was tasked to submit some logs of outgoing mails. The time stamp on qmail logs, located at /var/log/qmail/ (on my set-up) is in UNIX-time format. After searching around to produce a "human-readable format", I executed this simple command:
cat /var/log/qmail/send/\@4000000044e17dfd1c6a4cb4.s | tai64nlocal > somefile.txt
That's it for now.
cat /var/log/qmail/send/\@4000000044e17dfd1c6a4cb4.s | tai64nlocal > somefile.txt
That's it for now.
0 Comments:
Post a Comment
<< Home