Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread Bill Shirley
Is there some specific text that rsyslog can key off of? I use this for Shorewall and dhcpd (right after the RULES line): if $msg contains 'Shorewall' then { action(type="omfile" file="/var/log/shorewall.log") if ($syslogfacility == 0 and $syslogseverity >= 6) then stop # info }

Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread yodeller
Hello, On Sat, Aug 19, 2017, at 06:58 PM, Viktor Dukhovni wrote: > That said, both regular and debug logging in Postfix are logged > at the "info" level, Postfix does not use the syslog "debug" log > level. Therefore, built-in syslog log filtering cannot isolate > just the debug messages from

Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread Viktor Dukhovni
> On Aug 19, 2017, at 11:31 PM, yodel...@yepmail.net wrote: > >> but as Noel points out, you really should not have Postfix debug logging >> enabled on a >> routine basis. > > It's there for a reason isn't it? I use it when there's a problem and I need > more information. It's great having

Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread Viktor Dukhovni
> On Aug 19, 2017, at 9:07 PM, Wietse Venema wrote: > >> Sorry, not configurable other than patching the source. > > The logging level is specified via the syslog protocol. Every > syslog-compatible server (syslogd, etc.) will allow you to configure > handling that

Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread Wietse Venema
Noel Jones: > On 8/19/2017 3:53 PM, yodel...@yepmail.net wrote: > > Hello, > > > > I use Postfix's per-domain debug logging a lot. > > > Why? The general opinion here is everything important is already in > the normal logs, and the debug logs usually just make it hard to > find the real

Re: How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread Noel Jones
On 8/19/2017 3:53 PM, yodel...@yepmail.net wrote: > Hello, > > I use Postfix's per-domain debug logging a lot. Why? The general opinion here is everything important is already in the normal logs, and the debug logs usually just make it hard to find the real problem among the noise. Is there

How do you add LOGLEVEL labels to Postfix log output?

2017-08-19 Thread yodeller
Hello, I use Postfix's per-domain debug logging a lot. My configuration's got parent_domain_matches_subdomains = debug_peer_list debug_peer_list = pcre:/etc/postfix/debug_peer_list.pcre debug_peer_level = 1 debugger_command =