mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-21 02:00:42 +01:00
document exec_template() RainerScript function
This commit is contained in:
parent
344ed565a2
commit
d7873df242
@ -142,6 +142,11 @@ equivalent single-character [field($msg, 44 ,3)] extraction.
|
||||
<li>prifilt(constant) - mimics a traditional PRI-based filter (like "*.*" or
|
||||
"mail.info"). The traditional filter string must be given as a <b>constant string</b>.
|
||||
Dynamic string evaluation is not permitted (for performance reasons).
|
||||
<li>exec_template(templateName) -- executes a template and returns the string generated
|
||||
by it. Note that templateName must be a constant string. This is primarily for performance
|
||||
reasons. If there is a valid use case for dynamic template names, please let us know
|
||||
and we will re-consider the decision. TemplateName can be any template name, including the
|
||||
predefined ones.
|
||||
</ul>
|
||||
<p>The following example can be used to build a dynamic filter based on some environment
|
||||
variable:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user