Skip to content

Commit

Permalink
[ssip]: config generator rev01.
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <[email protected]>
  • Loading branch information
nazariig committed May 27, 2022
1 parent 430c24c commit 9454e33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/image_config/rsyslog/rsyslog.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ $RepeatedMsgReduction on
# The omfwd plug-in provides the core functionality of traditional message forwarding via UDP and plain TCP.
# It is a built-in module that does not need to be loaded.

{% if SYSLOG_SERVER is defined %}
{% for server, data in SYSLOG_SERVER.items() %}
{% set params_list = [] %}
{% if 'source' in data %}
Expand All @@ -89,3 +90,4 @@ $RepeatedMsgReduction on
{% endif %}
*.* action(type="omfwd" target="{{ server }}" protocol="udp" {{ params_list|join(' ') }})
{% endfor %}
{% endif %}

0 comments on commit 9454e33

Please sign in to comment.