20 lines
475 B
Plaintext
20 lines
475 B
Plaintext
|
## rsyslog-plugin for streaming telemetry via gnmi
|
||
|
|
||
|
|
||
|
|
||
|
template(name="prog_msg" type="list") {
|
||
|
property(name="msg")
|
||
|
constant(value="\n")
|
||
|
}
|
||
|
|
||
|
$ModLoad omprog
|
||
|
|
||
|
{% for proc in proclist %}
|
||
|
if re_match($programname, "{{ proc.name }}") then {
|
||
|
action(type="omprog"
|
||
|
binary="/usr/share/sonic/scripts/rsyslog_plugin -r /etc/rsyslog.d/{{ proc.parse_json }} -m {{ yang_module }}"
|
||
|
output="/var/log/rsyslog_plugin.log"
|
||
|
template="prog_msg")
|
||
|
}
|
||
|
{% endfor %}
|