Re: [Exim] Exim and trafficlogging...

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Steve Campbell
Dátum:  
Címzett: Markus Eckerl
CC: exim-users
Tárgy: Re: [Exim] Exim and trafficlogging...
> is it possible to put the eximlogs into a mysql database? We would
> need such a szenario because we have to calculate the emailtraffic per
> user.
>
> Does anybody know how to do that??


As Tamas says, you can get the final result by

eximstats -byemail -t<BigNumber> mainlog


Or, if you just want to put the sender emails and sizes into a file which you can then load into MySQL,

perl -ne 'print "$1\t$2\n" if /<= (\S+).*? S=(\d+)/' mainlog > load_file

Steve.