/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/source/rainerscript/functions/rs-exec_template.rst
23 строки
576 B
Rainer Gerhards
Add 'doc/' from commit 'a001c0e188ee266a3face91efe0211fff5c07043'
14 июн 2025, 18:45
14 июн 2025, 18:45
919d409
Код
Авторство
О чём код?
*************** exec_template() *************** Purpose ======= exec_template(str) 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 :** `<http://www.rsyslog.com/how-to-use-set-variable-and-exec_template>`_ Example ======= The following example shows the template being used to extract a part of the message. .. code-block:: none template(name="extract" type="string" string="%msg:F:5%") set $!xyz = exec_template("extract");