Fix the ordering of rsyslog.d files
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
A call to sendLogsToRemote for logs received through RELP/UDP has been added (to send them to Logstash/Redis/…), so common.conf's prefix must be lower than collector.conf's. Note: future "third-party" config files will also call sendLogsToRemote and thus will also have to use a prefix higher than 10.
This commit is contained in:
parent
02a8cb84df
commit
ba8b4e8c29
4 changed files with 6 additions and 4 deletions
|
@ -15,8 +15,8 @@
|
|||
- name: Deploy rsyslog input configuration file
|
||||
become: true
|
||||
template:
|
||||
src: 10-collector.conf.j2
|
||||
dest: /etc/rsyslog.d/10-collector.conf
|
||||
src: 20-collector.conf.j2
|
||||
dest: /etc/rsyslog.d/20-collector.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
|
|
|
@ -49,5 +49,7 @@ input(
|
|||
{% endif %}
|
||||
port="{{ input.port }}"
|
||||
ruleset="handleIncomingLogs"
|
||||
|
||||
call sendLogsToRemote
|
||||
)
|
||||
{% endfor %}
|
|
@ -28,8 +28,8 @@
|
|||
loop:
|
||||
- src: rsyslog.conf.j2
|
||||
dest: /etc/rsyslog.conf
|
||||
- src: 99-common.conf.j2
|
||||
dest: /etc/rsyslog.d/99-common.conf
|
||||
- src: 10-common.conf.j2
|
||||
dest: /etc/rsyslog.d/10-common.conf
|
||||
notify: Restart rsyslog
|
||||
|
||||
- name: Create journald.conf.d directory
|
||||
|
|
Loading…
Reference in a new issue