Using rsyslogd, stats for multiple installations
Brought to you by:
darold
I'm using v8.7 on Debian. I've got it working fine for 1 host, but since I hav 3 different mailservers (all of which accept mail for the same domains) I want to get an overview for all servers.
I have configured rsyslogd and the "DOMAIN_HOST_REPORT" in sendmailanalyzer.conf -- but sendmail analyzer shows statistics per server only. Is it possible to get statistics for all servers but by domain?
Anonymous
I think you can use the MERGING_HOST and DOMAIN_REPORT configuration directives to do what you want.
For example if you have 3 mail servers, let's say mtasrv1, mtasrv2 and mtasrv3. Each of them distribute message for domains srv1.dom, srv2.dom and srv3.dom.
...
should do what you are expecting if I've well understanding your question.
Let us now if that's solve your issue.
Hi, yes that is exactly what I want to do -- but unfortunately I can't get it working. Here is my syntax is sendmailanalyzer.conf:
I have also tried with commas & tabs,
But when I try to access sendmailanalyzer through a web browser and click on "Consult global statistics for mta-01 mta-02 mta-03 I get this:
Is there something wrong with my syntax? Is it because there is a hyphen in my MTA hostname?
Last edit: breakaway 2013-12-30
Yes, sorry I've made a mistake, in fact the value of MERGING_HOST will be used to replace any hostname from the log. So you may use it as followw:
That also mean that you can not aggregate some host and have single report for some others. All logs line will be processed as belonging to the same host.
Regards,