Centralisation des journaux (pas encore Elastic) #40

Manually merged
jeltz merged 24 commits from logs-first-phase into master 2024-07-01 01:55:28 +02:00
4 changed files with 6 additions and 4 deletions
Showing only changes of commit ba8b4e8c29 - Show all commits

View file

@ -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

View file

@ -49,5 +49,7 @@ input(
{% endif %}
port="{{ input.port }}"
ruleset="handleIncomingLogs"
call sendLogsToRemote
)
{% endfor %}

View file

@ -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