问题原文
原帖链接 · Chris · CC BY-SA 3.0
I have a postfix relay system that uses HAProxy to check to make sure Postfix is responding as it should. There is a front-end load balancer which connects using an internal IP to the backend servers. Is there any way I can exclude this particular IP address from filling up the logs? I need HAProxy to run regular checks to make sure the server is up and running but I don't want this being logged every time.
Thanks in advance, Chris.
已采纳解答
原帖链接 · Jacob Evans · CC BY-SA 3.0
rsyslog filter is easiest.
I assume you have a good network health where you register rDNS Records
Add this line before mail.*
:msg, contains, "from haproxyhostname" ~
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
