Discussion:
eximstats tool, search by destination domain?
Andy Smith
2008-05-28 09:34:39 UTC
Permalink
Hi,

can someone advise me if its possible to run the eximstats tool to provide statistics based on the destination domain? We host mutliple domains on our exim servers and a customer has asked if we can provide statistics on recieved mail and also rejected mail but it doesnt seem possible using eximstats, perhaps someone knows an alternative tool?

thanks for any suggestions! Andy.
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Warren Baker
2008-05-28 09:58:35 UTC
Permalink
Post by Andy Smith
Hi,
can someone advise me if its possible to run the eximstats tool to
provide statistics based on the destination domain? We host mutliple domains
on our exim servers and a customer has asked if we can provide statistics on
recieved mail and also rejected mail but it doesnt seem possible using
eximstats, perhaps someone knows an alternative tool?
What about:

exigrep domain mainlog | eximstats

Warren
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Andy Smith
2008-05-28 10:05:16 UTC
Permalink
Hi Warren,

yep, I thought of that and have tried it out and it seems ok. But I had an idea that not all lines of the mainlog
for a given domain would actually contain the domain as a text string, for example where there is an entry
refering to a transaction just by the ID field, for example something like this:

2008-05-28 00:00:31 [76236] 1K189c-000JpY-83 Completed QT=3s

So I guess its not going to give me a good accurate report :S

thanks Andy.
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Nigel Metheringham
2008-05-28 10:12:47 UTC
Permalink
Post by Andy Smith
yep, I thought of that and have tried it out and it seems ok. But I
had an idea that not all lines of the mainlog
for a given domain would actually contain the domain as a text
string, for example where there is an entry
refering to a transaction just by the ID field,
Warren used the exigrep command which is intended to output all
the log lines of a transaction where any of them match the
search string.

Straight grep would act as you were suggesting, but exigrep is built
specifically for this case.

Nigel.

--
[ Nigel Metheringham ***@InTechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Warren Baker
2008-05-28 10:14:19 UTC
Permalink
Post by Andy Smith
Hi Warren,
yep, I thought of that and have tried it out and it seems ok. But I had
an idea that not all lines of the mainlog
for a given domain would actually contain the domain as a text string, for
example where there is an entry
2008-05-28 00:00:31 [76236] 1K189c-000JpY-83 Completed QT=3s
So I guess its not going to give me a good accurate report :S
'exigrep' extracts all log entries related to the pattern you search for. So
this would extract the above log line just fine...


Thx
Warren
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Andy Smith
2008-05-28 10:17:53 UTC
Permalink
Ah!! I see, ok thats great!

Many thanks Warren and Nigel,

cheers Andy :)
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Loading...