It's HEAD from git as of yesterday.

./configure without any additional enables. Does it make difference?


--
Pavel Levshin


20.10.2013 21:06, David Lang пишет:
what version of rsyslog are you using? it looks as if it may not be new enough to support global variables. I believe they need 7.5

David Lang

On Sun, 20 Oct 2013, Pavel Levshin wrote:

Date: Sun, 20 Oct 2013 20:03:15 +0400
From: Pavel Levshin <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: [email protected]
Subject: Re: [rsyslog] A solution to action load balancing


I am unable to reproduce this behaviour with global variables. This is what I've tried among others:

if $/zz % 3 == 0 or $/zz % 3 == 1 then {
set $/zz = $/zz + 1;
action(...)
} else {
set $/zz = 0;
action(...)
}

All I'm getting is:

3963.933927543:7f6b3fd1b700: scriptExec: batch of 1 elements, active (nil), active[0]:1
3963.933934378:7f6b3fd1b700: IF
3963.933948742:7f6b3fd1b700: var '$/zz'
3963.933973017:7f6b3fd1b700: %
3963.933994256:7f6b3fd1b700: 3
3963.934018750:7f6b3fd1b700: ==
3963.934036744:7f6b3fd1b700: 0
3963.934057878:7f6b3fd1b700: OR
3963.934073408:7f6b3fd1b700: var '$/zz'
3963.934097847:7f6b3fd1b700: %
3963.934118831:7f6b3fd1b700: 3
3963.934143215:7f6b3fd1b700: ==
3963.934160950:7f6b3fd1b700: 1
3963.934186419:7f6b3fd1b700: eval expr 0x261d1a0, type 'OR'
3963.934193424:7f6b3fd1b700: eval expr 0x261bfa0, type 'CMP_EQ'
3963.934201213:7f6b3fd1b700: eval expr 0x2616f80, type '%[37]'
3963.934208713:7f6b3fd1b700: eval expr 0x2613c70, type 'V[86]'
3963.934220598:7f6b3fd1b700: PROP_INVALID for name '/zz'
3963.934228877:7f6b3fd1b700: invalid property id: '0'
3963.934238507:7f6b3fd1b700: rainerscript: var '$/zz': '**INVALID PROPERTY NAME**'

Could you please explain how is it supposed to work?


--
Pavel Levshin

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to