any thoughts on this issue with calling rulesets by names with hyphens ("-") ?

btw, i forgot to mention this is with rsyslog 8.2.1 on RHEL6. (using the yum 
repo supplied by rsyslog project)

thanks for any suggestions,
-Bond

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Masuda, Bond
Sent: Wednesday, June 18, 2014 6:06 PM
To: [email protected]
Subject: Re: [rsyslog] call ruleset and ruleset name allowable characters

Hi rsyslogers:

I'm testing out the "call" method to nest rulesets inside rulesets. However, I 
get a parsing error whenever a ruleset has "-" (hyphen) in the ruleset name. 
For example:

ruleset(name="Data-Archiving") {
        action(type="omfile" file="/data/logs/archive-all.log")
}

ruleset(name="main") {
        call Data-Archiving
}

I get this error:

Jun 18 17:34:40 hostname rsyslogd-2207: error during parsing file 
/etc/rsyslog.d/ruleset_main-remote.conf, on or before line 2: errors occured in 
file '/etc/rsyslog.d/ruleset_main-remote.conf' around line 2 [try 
http://www.rsyslog.com/e/2207 ]
Jun 18 17:34:40 hostname rsyslogd-2207: error during parsing file (null), on or 
before line 108: ruleset 'Data' cannot be found  [try 
http://www.rsyslog.com/e/2207 ]

Looks like instead of looking for "Data-Archiving" ruleset name, it is looking 
for "Data". Is this a bug or is there some restrictions on what characters can 
be used for ruleset names? When I use name without "-", everything works as 
expected!

TIA,
-Bond
_______________________________________________
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.
_______________________________________________
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