|
1 | | -global({{ rsyslog_dir_file_modes }}) |
2 | | - |
3 | 1 | $RuleSet {{ item.name }} |
4 | 2 | {% if item.name != "mgnt_sc" %} |
5 | 3 |
|
6 | 4 | {% for app, config in rsyslog_central_apps.items() %} |
7 | 5 | if $programname == "{{ config.program }}" |
8 | 6 | {%- if 'contains' in config %} and $msg contains '{{ config.contains }}' {% endif -%} |
9 | 7 | {%- if 'startswith' in config %} and $msg startswith '{{ config.startswith }}' {% endif %} |
10 | | - then { action(type="omfile" DynaFile="{{ app }}-{{ item.name }}") stop }} |
| 8 | + then { action(type="omfile" DynaFile="{{ app }}-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop }} |
11 | 9 | {% endfor %} |
12 | 10 |
|
13 | 11 | {% for stepupapp in stepupapps %} |
14 | | -if $programname == "stepup-{{ stepupapp }}" then { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}") stop } |
15 | | -if $programname == "{{ stepupapp }}" and $msg startswith "{{ stepupapp }}" then { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}") stop } |
16 | | -if $programname == "{{ stepupapp }}" then { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}") stop } |
17 | | -if $programname == "Apache-{{ stepupapp }}" then { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}") stop } |
| 12 | +if $programname == "stepup-{{ stepupapp }}" then { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 13 | +if $programname == "{{ stepupapp }}" and $msg startswith "{{ stepupapp }}" then { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 14 | +if $programname == "{{ stepupapp }}" then { action(type="omfile" DynaFile="stepup-{{ stepupapp }}-{{item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 15 | +if $programname == "Apache-{{ stepupapp }}" then { action(type="omfile" DynaFile="apache-{{ stepupapp }}-{{item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
18 | 16 | {% endfor %} |
19 | | -if $programname == "Apache-azuremfa" then { action(type="omfile" DynaFile="apache-azure-mfa-{{ item.name }}") stop } |
| 17 | +if $programname == "Apache-azuremfa" then { action(type="omfile" DynaFile="apache-azure-mfa-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
20 | 18 |
|
21 | 19 |
|
22 | 20 | {% endif %} |
23 | | -if $programname == "audispd" then { action(type="omfile" DynaFile="auditd-{{ item.name }}") stop } |
24 | | -if $programname == "audit" then { action(type="omfile" DynaFile="auditd-{{ item.name }}") stop } |
25 | | -if $programname == "audisp-syslog" then { action(type="omfile" DynaFile="auditd-{{ item.name }}") stop } |
26 | | -if $programname == "-bash" then { action(type="omfile" DynaFile="bash-{{ item.name }}") stop } |
27 | | -if $programname == "authpriv" then { action(type="omfile" dynafile="secure-{{ item.name }}") stop } |
28 | | -if $msg contains "-- MARK --" then { action(type="omfile" DynaFile="MARK-{{ item.name }}") stop } |
| 21 | +if $programname == "audispd" then { action(type="omfile" DynaFile="auditd-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 22 | +if $programname == "audit" then { action(type="omfile" DynaFile="auditd-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 23 | +if $programname == "audisp-syslog" then { action(type="omfile" DynaFile="auditd-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 24 | +if $programname == "-bash" then { action(type="omfile" DynaFile="bash-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 25 | +if $programname == "authpriv" then { action(type="omfile" Dynafile="secure-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
| 26 | +if $msg contains "-- MARK --" then { action(type="omfile" DynaFile="MARK-{{ item.name }}" {{ rsyslog_dir_file_modes }}) stop } |
29 | 27 |
|
30 | 28 | *.* ?hostleft-{{ item.name }} |
0 commit comments