[syslog-ng]How to filter XDMCP messages ?

Nate Campi syslog-ng@lists.balabit.hu
Tue, 4 Mar 2003 07:21:21 -0800


On Tue, Mar 04, 2003 at 02:46:23PM +0100, Gerard Breiner wrote:
> 
> I wonder how to configure syslog-ng to filtering the messages emitted
> by gdm_xdmcp. this type of messages pollutes my files of logs.  Here
> is messages i don't want : "gdm[3798]: gdm_xdmcp_handle_query: Opcode
> 1 from ".

filter f_not_gdm { 
	not program("gdm");
};

log {
        source(src);
        filter(f_not_gdm);
        destination(syslog);
};

This will keep any gdm messages from being logged, which is probably ok.
-- 
Nate Campi    http://www.campin.net