Gentoo Archives: gentoo-user

From: Marcin Niskiewicz <mniskiewicz@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslog-ng +bash history
Date: Thu, 12 Feb 2009 13:40:09
Message-Id: b6373cd60902120540r33b57d28r9b8741a04190f890@mail.gmail.com
In Reply to: Re: [gentoo-user] syslog-ng +bash history by Willie Wong
1 2009/2/5 Willie Wong <wwong@×××××××××.edu>
2
3 > On Thu, Feb 05, 2009 at 09:31:07AM +0100, Penguin Lover Marcin Niskiewicz
4 > squawked:
5 > > It works fine (it writes history to history.log) but still it writes it
6 > to
7 > > those 3 files (debug , syslog, messages) as well ...
8 > > so now everything I type is written to 4 files (debug , syslog, messages
9 > and
10 > > history.log) and I'd like it to be written only to 1 file.
11 > >
12 >
13 > If you have a filter rule that matches for history, why don't you just
14 > append "and not [insert rule here]" to the filter rule for syslog,
15 > messages, and debug?
16 >
17 > W
18 > --
19 > "This is just for cultural purposes, so don't panic."
20 > ~DeathMech, S. Sondhi. P-town PHY 205
21 > Sortir en Pantoufles: up 790 days, 13:07
22 >
23 >
24 Hello
25 thanks for helping me
26 as it seems the solution was easy - i had to put "flags(final);" parameter
27 and change a little order in config file and put:
28 log { source(src); filter(f_history); destination(history); flags(final); };
29 in the highest line in log section
30 and it works!
31
32 (the solution from syslog-ng group)
33
34 thanks again
35
36 regards
37 nichu