Parsing Qmail Logs | A non-stock, non-profit organization composed of individuals dedicated to promoting open source software. Batangas, Philippines">
Google
 
Web boss-ph.blogspot.com

Thursday, August 17, 2006

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.

0 Comments:

Post a Comment

<< Home