do

local0.*                -/var/log/postgresql/postgresql-8.4-main.log
& ~

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Tim Uckun
> Sent: Thursday, October 21, 2010 4:34 AM
> To: [email protected]
> Subject: [rsyslog] postgres logging to three places..
> 
> I have the following setup in the rsyslog.d directory.
> 
> #
> local0.*              -/var/log/postgresql/postgresql-8.4-main.log
> #
> # add local0 to the ignore field for the normal messages so it wont'
> get logged twice.
> #
> *.=info;*.=notice;*.=warn;\
>       auth,authpriv.none;\
>       cron,daemon.none;\
>       mail,news.none;\
>       local0.none             -/var/log/messages
> 
> 
> The problem is that postgres is now logging to /var/log/postgres...
> and /var/log/messages and /var/log/syslog.
> 
> What do I have to do in order to exclude the postgres logs from
> messages and syslog?
> 
> Thanks.
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to