[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix + AWStats



El mié, 17-03-2010 a las 13:01 +0100, Marcos Lorenzo de Santiago escribió:
Hello everyone,

I'm running Postfix 2.5.5 on a Debian system and I'm trying to get AWstats to process my postfix mail log. I've read all FAQ at awstats' and postix's homepage and none is aplicable.
As I read on http://awstats.sourceforge.net/docs/awstats_faq.html#MAIL it is said that LogFormat has to be:
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"

As I read help for these wildcards, I realize that:

%time2            Date and time with format: yyyy-mm-dd hh:mm:ss

And my log file is not %time2 it should be %time3:

%time3            Date and time with format: Mon dd hh:mm:ss or Mon dd hh:mm:ss yyyy

as I see on postfix's log:

Mar 14 06:30:37 externo2 postfix/pickup[11701]: EDC557B82AE: uid=0 from=<root>
Mar 14 06:30:37 externo2 postfix/cleanup[16392]: EDC557B82AE: message-id=<20100314053037.EDC557B82AE@externo>
Mar 14 06:30:38 externo2 postfix/qmgr[22768]: EDC557B82AE: from=<root@externo>, size=1142, nrcpt=1 (queue active)
Mar 14 06:30:38 externo2 postfix/local[16483]: EDC557B82AE: to=<root@externo>, orig_to=<root>, relay=local, delay=305, delays=305/0.06/0/0.11, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 14 06:30:38 externo2 postfix/qmgr[22768]: EDC557B82AE: removed

Each mail access to smtp has several lines (one for from, another for to...) in log, so the awstats filter will never get the info it wants.

Has anyone succesfully configured AWstats to fit Postfix's 2.5.5 log file format?

Thanks in advance.

OK, my fault I was missing an option in LogFile parameter. Obfuscation... :P



Thanks anyway,
Marcos Lorenzo de Santiago.



-- 
-----------------------------------------------------------------------
Dijkstra probably hates me                                            
(Linus Torvalds, in kernel/sched.c)                                   
-----------------------------------------------------------------------

Marcos Lorenzo de Santiago
Técnico de Sistemas

Departamento de Nuevas Tecnologías
Ayuntamiento de Getafe
Plaza de la Constitución 1 (28901)

Correo:          marcos.lorenzo@ayto-getafe.org
Teléfono:        912 027 948
Móvil:           608 300 935



-- 
-----------------------------------------------------------------------
BOFH excuse #230:                                                     
Lusers learning curve appears to be fractal                           
-----------------------------------------------------------------------

Marcos Lorenzo de Santiago
Técnico de Sistemas

Departamento de Nuevas Tecnologías
Ayuntamiento de Getafe
Plaza de la Constitución 1 (28901)

Correo:          marcos.lorenzo@ayto-getafe.org
Teléfono:        912 027 948
Móvil:           608 300 935

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente


Reply to: