I finally got time to test your patch. And it works perfectly!
Combined with the previous one, the test case of my first post works as
expected. :-)
If some wants to play with it on rsyslog 7.2.6: http://pastebin.com/Y8T7cYS5
Thanks Rainer !
Philippe Muller
On Fri, Apr 5, 2013 at 6:44 PM, Rai
On Fri, 2013-04-05 at 18:20 +0200, Philippe Muller wrote:
> How should I apply it ?
>
> I tested on 7.2.6, 7.3.9 and git master. It always gets rejected.
>
It probably needs the other patch in v7-stable. So building from git
v7-stable would be one option. I can also see that I merge the patch
up
How should I apply it ?
I tested on 7.2.6, 7.3.9 and git master. It always gets rejected.
Philippe Muller
On Thu, Apr 4, 2013 at 4:10 PM, Rainer Gerhards wrote:
> Philippe,
>
> > FYI: can reproduce, and seems to be present in master branch as well.
>
> OK, this was a very weird issue, related
Philippe,
> FYI: can reproduce, and seems to be present in master branch as well.
OK, this was a very weird issue, related to batch processing and state
tracking. The then-case worked OK, but the else case was applied always, even
for messages that never were intended to go into the inner if.
s
> Subject: Re: [rsyslog] Need help to understand RainerScript behavior (rsyslog
> 7.2.6)
>
> > > -Original Message-
> > > From: rsyslog-boun...@lists.adiscon.com [mailto:rsyslog-
> > > boun...@lists.adiscon.com] On Behalf Of Philippe Muller
> > > Se
; > >
> > > Here is what's written to /tmp/cee-debug :
> > > - Vanilla 7.2.6:
> > > msg: " [origin software="rsyslogd" swVersion="7.2.6" x-pid="22829"
> > > x-
> > info="
> > > http://www.rsy
> -Original Message-
> From: rsyslog-boun...@lists.adiscon.com [mailto:rsyslog-
> boun...@lists.adiscon.com] On Behalf Of Philippe Muller
> Sent: Thursday, April 04, 2013 2:02 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] Need help to understand RainerScript behavio
quot; x-pid="22838" x-info="
> http://www.rsyslog.com";] start", json: { "match": 0, "match_debug": 0,
> "match_eq_debug": 0 }
> msg: " test-token", json: { "match": 1, "match_debug": 1,
> "match_eq_debug&quo
Betreff: Re: [rsyslog] Need help to understand RainerScript behavior (rsyslog
7.2.6)
Hello,
I did several tests. At first, I could'nt find any behavior difference with
and without the patch. That's because I did the test with the last
configuration snippet I posted. It was intended to ill
SAP. :-)
>
> Philippe Muller
>
>
> On Thu, Apr 4, 2013 at 10:12 AM, Rainer Gerhards > wrote:
>
>> > -Original Message-
>> > From: rsyslog-boun...@lists.adiscon.com [mailto:rsyslog-
>> > boun...@lists.adiscon.com] On Behalf Of Rainer Gerhards
&g
> > Sent: Thursday, April 04, 2013 9:48 AM
> > To: Philippe Muller
> > Cc: rsyslog-users (rsyslog@lists.adiscon.com)
> > Subject: Re: [rsyslog] Need help to understand RainerScript behavior
> (rsyslog
> > 7.2.6)
> >
> > Quick update: I have this in lab now. I
Sent: Friday, March 29, 2013 11:40 AM
> > To: Rainer Gerhards; rsyslog-users
> > Subject: Re: [rsyslog] Need help to understand RainerScript behavior
> > (rsyslog
> > 7.2.6)
> >
> > Not sure is it is related :
> >
> >
> > I tried this configuratio
29, 2013 11:40 AM
> To: Rainer Gerhards; rsyslog-users
> Subject: Re: [rsyslog] Need help to understand RainerScript behavior (rsyslog
> 7.2.6)
>
> Not sure is it is related :
>
>
> I tried this configuration :
> ---
> if $app-name startswith "FOO-" then
n Thu, Mar 28, 2013 at 11:12 PM, Philippe Muller wrote:
> Here is the full debug log : http://pastebin.com/SMtnZNuL
>
>
>
> Philippe Muller
>
>
> On Thu, Mar 28, 2013 at 10:57 PM, Rainer Gerhards <
> rgerha...@hq.adiscon.com> wrote:
>
>> No, should work.
ler
> Datum: 28.03.2013 22:53 (GMT+01:00)
> An: rsyslog-users
> Betreff: Re: [rsyslog] Need help to understand RainerScript behavior
> (rsyslog 7.2.6)
>
>
> I guess using set-able variables in if-statement is not supported.
> Rainer : can you confirm that ?
>
> Philip
No, should work. Debug log?
Sent from phone, thus brief.
Ursprüngliche Nachricht
Von: Philippe Muller
Datum: 28.03.2013 22:53 (GMT+01:00)
An: rsyslog-users
Betreff: Re: [rsyslog] Need help to understand RainerScript behavior (rsyslog
7.2.6)
I guess using set-able
I guess using set-able variables in if-statement is not supported.
Rainer : can you confirm that ?
Philippe Muller
On Thu, Mar 28, 2013 at 7:18 PM, Philippe Muller
wrote:
> Hi rsyslog users,
>
> I try to define a scheme which gives users a way to chose if messages
> should be written on their s
Hi rsyslog users,
I try to define a scheme which gives users a way to chose if messages
should be written on their server filesystem and if they should be
forwarded to syslog collectors.
Here is my test configuration :
---
module(load="imuxsock")
# Default: All messages should be written locally
18 matches
Mail list logo