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

Denis Kot syslog-ng@lists.balabit.hu
Mon, 28 Feb 2005 09:04:51 +0200


if I do this, then device /dev/null get permission 644 and any other
application (for example postgresql) can=B4t write to /dev/null...


On Mon, 28 Feb 2005 01:58:26 -0500, Jay Guerette <jayguerette@gmail.com> wr=
ote:
> Add your filter:
>=20
> destination devnull {
>         file(/dev/null);
> };
> log {
>         source(syslog);
>         filter(...);
>         destination(devnull);
>         flags(final);
> };
>=20
> On Tue, 22 Feb 2005 14:01:02 +0200, Denis Kot <denis.kot@gmail.com> wrote=
:
> > I want to route some messages to /dev/null.
> > how to do it?
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>=20
>=20


--=20
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78