RSyslog Documentation




Sets a variable through the execution of a template. Basically this permits to easily extract some part of a property and use it later as any other variable.

Read more about it here :


The following example shows the template being used to extract a part of the message.

template(name="extract" type="string" string="%msg:F:5%")
set $!xyz = exec_template("extract");

See also

Help with configuring/using Rsyslog:

  • Mailing list - best route for general questions
  • GitHub: rsyslog source project - detailed questions, reporting issues that are believed to be bugs with Rsyslog
  • Stack Exchange (View, Ask) - experimental support from rsyslog community

See also

Contributing to Rsyslog:

Copyright 2008-2020 Rainer Gerhards (Großrinderfeld), and Others.

Scroll to top