Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    27
    Points
    1,624
    Level
    16

    Lightbulb QMail Log Dates (human readable)

    While searching in qmail's send logs, I found the line I needed but there was a problem... The date seems to be there, embedded in a complicated hexadecimal string and I need it.

    I searched a bit in the forums and did not find it at first so I googled a bit and found that line of code which helped me a lot (among perl scripts)

    If you want to convert dates from the current logs go to the /var/log/* (where * means either send, smtp, smtp2, pop3, pop3-ssl, imap4, imap4-ssl) and run this command:

    cat ./current | tai64nlocal > current-merged-log

    Otherwise, you can convert all rotated logs in the right order with this command:

    sort -m \@* | tai64nlocal > old-merged-log

    Hope this helps someone as much as it helped me! And feel free to reply with a better answer if there is one!
    http://www.domaineplus.com/ - Over 10 years in the business
    Domain names - Web hosting - Website Design and Programming
    Phone support and sales : 1-877-990-2047
    Email support : support@domaineplus.com

  2. #2
    Join Date
    Jun 2011
    Posts
    137
    Points
    1,826
    Level
    17
    That's about it - If I'm just looking at the log itself for an error or something then I'll just 'cat /var/log/<mail server type>/current' | tai64nlocal .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •