route some messages to /dev/null
I want to route some messages to /dev/null. how to do it? -- Denis Kot denis?jabber.org.by ICQ: 13680126 Mobil: +375 29 6-1234-78
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> wrote:
I want to route some messages to /dev/null. how to do it?
if I do this, then device /dev/null get permission 644 and any other application (for example postgresql) can´t write to /dev/null... 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> 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
-- Denis Kot denis?jabber.org.by ICQ: 13680126 Mobil: +375 29 6-1234-78
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´t write to /dev/null...
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> wrote:
I want to route some messages to /dev/null. how to do it?
no, it´s Gentoo linux without SELinux in USE On Mon, 28 Feb 2005 03:02:21 -0500, Jay Guerette <jayguerette@gmail.com> wrote:
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´t write to /dev/null...
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> 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
-- Denis Kot denis?jabber.org.by ICQ: 13680126 Mobil: +375 29 6-1234-78
Ah. Worth a shot. The as-shipped SELinux policies on FC3 don't expect you to change things from their defaults. Causes problems. That's a tangent anyway. Here's what you need: destination devnull { file(/dev/null perm(0666)); }; On Mon, 28 Feb 2005 10:08:32 +0200, Denis Kot <denis.kot@gmail.com> wrote:
no, it´s Gentoo linux without SELinux in USE
On Mon, 28 Feb 2005 03:02:21 -0500, Jay Guerette <jayguerette@gmail.com> wrote:
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´t write to /dev/null...
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> wrote:
I want to route some messages to /dev/null. how to do it?
On Mon, 2005-02-28 at 03:24 -0500, Jay Guerette wrote:
Ah. Worth a shot. The as-shipped SELinux policies on FC3 don't expect you to change things from their defaults. Causes problems.
That's a tangent anyway.
Here's what you need:
destination devnull { file(/dev/null perm(0666)); };
or alternatively skip the destination parameter from your log statement. it does the same. e.g. log { source(src_to_be_devnulled); filter(devnullfilter); flags(final); }; -- Bazsi
Even better! On Mon, 28 Feb 2005 09:54:33 +0100, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Mon, 2005-02-28 at 03:24 -0500, Jay Guerette wrote:
Ah. Worth a shot. The as-shipped SELinux policies on FC3 don't expect you to change things from their defaults. Causes problems.
That's a tangent anyway.
Here's what you need:
destination devnull { file(/dev/null perm(0666)); };
or alternatively skip the destination parameter from your log statement. it does the same. e.g.
log { source(src_to_be_devnulled); filter(devnullfilter); flags(final); };
participants (3)
-
Balazs Scheidler
-
Denis Kot
-
Jay Guerette