[rsyslog] log *.*, except logs by "postgres"

david at lang.hm david at lang.hm
Fri Mar 19 05:22:13 CET 2010


On Fri, 19 Mar 2010, Tomasz Chmielewski wrote:

> Am 19.03.2010 01:08, david at lang.hm wrote:
>
>>> where postgres[number] can differ.
>> 
>> hmm, in these cases postgres should be what's in programname
>> 
>> taking a different slant, IIRC you used local0.* to capture the postgres
>> logs into one file, if in the line after that you do
>> 
>> local0.* ~
>> 
>> that should eliminate those logs from going into any files after that.
>
> This one works, but that'll filter out heartbeat, pgpool and others useful, 
> which get to syslog.

I will point out that those entries are getting put into your 
posgresql_log file along with the postgres logs then.

so you may want to change the filter for that line as well (now that I dug 
up the page with the correct syntax rather than going from memory)

David Lang



More information about the rsyslog mailing list