On Thu, 5 Apr 2012, Jo Rhett wrote:

that being said, you should probably look into the rulesets feature. It would 
allow you to have filter criteria that direct the log to a specific ruleset. 
That ruleset can then have additional filter criteria if needed, and then can 
specify the destination and template.

Yeah, I did the entire upgrade from 3.22 to 5.8 exactly for that reason.  Not 
quite sure this will solve my needs.

FWIW, I'm also deeply disturbed by the lack of closures in the syntax. It's 
really hard to read a long configuration file with multiple rulesets.  I've 
ended up creating fake/comment closures and using indentation just to make it 
readable.

the new syntax introduced in 6.x was created specifically to address this issue. Unfortunantly the pre-6.x syntax is derived from the historic syslog syntax which was very limited.

David Lang

starting a rule

rule one
rule two

this-command-is-outside-the-ruleset-but-only-if-you-know-the-syntax

rule three -- is not in the previous ruleset, but you won't know that if you 
don't that the previous command wasn't.
rule four

This is really, really hard to read without knowing the syntax inside and out.  
I'm sure you and Rainer do, but using closures would greatly improve the 
readability.

ruleset {
  ?
}

command-outside-the-ruleset

ruleset {
 ?
}


_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/

Reply via email to