Centralisation des journaux (pas encore Elastic) #40
4 changed files with 6 additions and 4 deletions
|
@ -15,8 +15,8 @@
|
||||||
- name: Deploy rsyslog input configuration file
|
- name: Deploy rsyslog input configuration file
|
||||||
become: true
|
become: true
|
||||||
template:
|
template:
|
||||||
src: 10-collector.conf.j2
|
src: 20-collector.conf.j2
|
||||||
dest: /etc/rsyslog.d/10-collector.conf
|
dest: /etc/rsyslog.d/20-collector.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
|
|
@ -49,5 +49,7 @@ input(
|
||||||
{% endif %}
|
{% endif %}
|
||||||
port="{{ input.port }}"
|
port="{{ input.port }}"
|
||||||
ruleset="handleIncomingLogs"
|
ruleset="handleIncomingLogs"
|
||||||
|
|
||||||
|
call sendLogsToRemote
|
||||||
)
|
)
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -28,8 +28,8 @@
|
||||||
loop:
|
loop:
|
||||||
- src: rsyslog.conf.j2
|
- src: rsyslog.conf.j2
|
||||||
dest: /etc/rsyslog.conf
|
dest: /etc/rsyslog.conf
|
||||||
- src: 99-common.conf.j2
|
- src: 10-common.conf.j2
|
||||||
dest: /etc/rsyslog.d/99-common.conf
|
dest: /etc/rsyslog.d/10-common.conf
|
||||||
notify: Restart rsyslog
|
notify: Restart rsyslog
|
||||||
|
|
||||||
- name: Create journald.conf.d directory
|
- name: Create journald.conf.d directory
|
||||||
|
|
Loading…
Reference in a new issue