Skip to content

Commit

Permalink
Rsyslog: Filter messages that come from the stepup dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jan 11, 2024
1 parent edf3f1f commit ad1fe27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/rsyslog/templates/sc_ruleset.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ $RuleSet {{ item.name }}
{% for stepupapp in stepupapps %}
:programname, isequal, "stepup-{{ stepupapp }}" { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}") stop }
:programname, isequal, "Apache-{{ stepupapp }}" { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}") stop }
if $programname == "{{ stepupapp }}" and $msg startswith " {{ stepupapp }}" then { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}") stop }
:programname, isequal, "{{ stepupapp }}" { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}") stop }
{% endfor %}
:programname, isequal, "stepup-authentication" { action(type="omfile" DynaFile="stepup-authentication-{{ item.name }}") stop }
{% endif %}
Expand Down

0 comments on commit ad1fe27

Please sign in to comment.