[Exim] Monthly Statistics from eximstats

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Steve Campbell
Dátum:  
Címzett: Margrit Lottmann, exim-users
Tárgy: [Exim] Monthly Statistics from eximstats
Margrit,

The latest versions of eximstats have the '-merge' option which allow you to merge daily built statistics files into a monthly statistics file just like you want.

For example:

eximstats mainlog.1 > day1.txt
eximstats mainlog.2 > day2.txt
...
eximstats mainlog.31 > day31.txt

eximstats -merge day*.txt > month.txt


You can use all the normal options with -merge, including -html. For example:

eximstats -merge day*.html > month.txt
eximstats -merge -html day*.txt > month.html
eximstats -merge -html day*.html > month.html

Naturally, this is not restricted to just doing a month. Any files can be merged to provide a combined result for weeks, months, or even years.

Hope this helps,
Steve Campbell