[rsyslog] log *.*, except logs by "postgres"
Tomasz Chmielewski
mangoo at wpkg.org
Fri Mar 19 14:31:50 CET 2010
Am 19.03.2010 05:22, david at lang.hm wrote:
> 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.
Yep, but I'm fine with that (they also concern Postgres on this machine,
but are counted in kilobytes per day, not in several hundred megabytes).
--
Tomasz Chmielewski
http://wpkg.org
More information about the rsyslog
mailing list