26
Mar

Comment afficher les logs des mails de façon lisible

Written by Stephane Montagnon. Posted in Astuces Linux

Voici plusieurs syntaxe permettant d’afficher les logs  :

Affichage en temps réel des mails :

tail -f /var/log/qmail/current
@400000005332a850093af7ec delivery 124797: success: did_0+0+1/
 @400000005332a850093bf9bc status: local 0/10 remote 1/3
 @400000005332a850093c0d44 end msg 336299
 @400000005332a8510eb53494 new msg 336299
 @400000005332a8510eb54c04 info msg 336299: bytes 12944 from  qp 23654 uid 509
 @400000005332a85111ba4ea4 starting delivery 124798: msg 336299 to local xxx.com-toto@xxx.com
 @400000005332a85111ba528c status: local 1/10 remote 1/3
 @400000005332a85111d623a4 delivery 124798: success: did_0+0+1/
 @400000005332a85111d6a0a4 status: local 0/10 remote 1/3
 @400000005332a85111d6a48c end msg 336299

Afficher la date correctement

tail -f /var/log/qmail/current |tai64nlocal

2014-03-26 11:14:24.720389500 status: local 0/10 remote 1/3
2014-03-26 11:14:35.606927500 new msg 336428
2014-03-26 11:14:35.606932500 info msg 336428: bytes 1552 from  qp 23937 uid 509
2014-03-26 11:14:35.651203500 starting delivery 124808: msg 336428 to local test-fr.test@test.fr
2014-03-26 11:14:35.651204500 status: local 1/10 remote 1/3
2014-03-26 11:14:35.653120500 delivery 124808: success: did_0+0+1/
2014-03-26 11:14:35.653178500 status: local 0/10 remote 1/3
2014-03-26 11:14:35.653179500 end msg 336428

Mots-clefs :

Trackback from your site.

Laisser un commentaire