Multiple property options

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Multiple property options

Postby userlame » Mon Nov 10, 2008 4:57 am

Apologies if this is answered elsewhere, I found nothing in the documentation (could be added?) or searching google/forums.

How can I use multiple options in a property? Is it supported? Comma-delimited perhaps? For example, I want to use drop-last-lf and escape-cc for a single property such as:

%msg:::drop-last-lf,escape-cc

Is that possible/correct?

TIA
userlame
New
 
Posts: 2
Joined: Mon Nov 10, 2008 3:34 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Multiple property options

Postby rgerhards » Mon Nov 10, 2008 9:16 am

good point - I, too, need to check the code ;)
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: Multiple property options

Postby rgerhards » Mon Nov 10, 2008 9:20 am

yes, they are comma-delimited. So your sample is correct, except that it is missing the closing % ;). Thanks for pointing this out, will add it to the doc.
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: Multiple property options

Postby rgerhards » Mon Nov 10, 2008 9:26 am

From the new doc:

To use multiple options, simply place them one after each other with a comma delmimiting
them. For example "escape-cc,sp-if-no-1st-sp". If you use conflicting options together,
the last one will override the previous one. For example, using "escape-cc,drop-cc" will
use drop-cc and "drop-cc,escape-cc" will use escape-cc mode.


If you think some other text, or corrections, would make for a better to understand description, please post suggested text :)

Thanks,
Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: Multiple property options

Postby userlame » Mon Nov 10, 2008 5:07 pm

rgerhards wrote:From the new doc:

To use multiple options, simply place them one after each other with a comma delmimiting
them. For example "escape-cc,sp-if-no-1st-sp". If you use conflicting options together,
the last one will override the previous one. For example, using "escape-cc,drop-cc" will
use drop-cc and "drop-cc,escape-cc" will use escape-cc mode.


If you think some other text, or corrections, would make for a better to understand description, please post suggested text :)

Thanks,
Rainer


That text looks perfect, thanks much!
userlame
New
 
Posts: 2
Joined: Mon Nov 10, 2008 3:34 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron