[syslog-ng]route some messages to /dev/null

Jay Guerette syslog-ng@lists.balabit.hu
Mon, 28 Feb 2005 03:02:21 -0500


This wouldn't happen to be a FC3 system with SELinux enabled?

On Mon, 28 Feb 2005 09:04:51 +0200, Denis Kot <denis.kot@gmail.com> wrote:
> if I do this, then device /dev/null get permission 644 and any other
> application (for example postgresql) can=B4t write to /dev/null...
>=20
> On Mon, 28 Feb 2005 01:58:26 -0500, Jay Guerette <jayguerette@gmail.com> =
wrote:
> > Add your filter:
> >
> > destination devnull {
> >         file(/dev/null);
> > };
> > log {
> >         source(syslog);
> >         filter(...);
> >         destination(devnull);
> >         flags(final);
> > };
> >
> > On Tue, 22 Feb 2005 14:01:02 +0200, Denis Kot <denis.kot@gmail.com> wro=
te:
> > > I want to route some messages to /dev/null.
> > > how to do it?