From 859fdb4ce5b0ab2e95471f41a084c91345158a9f Mon Sep 17 00:00:00 2001 From: VC Date: Mon, 3 Nov 2025 11:58:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F:=20fix=20rsyslog=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory/static.yml | 1 + roles/rsyslog/files/remote.conf | 1 + roles/rsyslog/files/sys.conf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inventory/static.yml b/inventory/static.yml index 635d10b..d2a9beb 100644 --- a/inventory/static.yml +++ b/inventory/static.yml @@ -98,6 +98,7 @@ disabled_syslog: muse-HP-EliteBook-820-G2: pinkypie: ks3370405: + haos: # Those are not servers and should not be configured as such disabled_server_conf: diff --git a/roles/rsyslog/files/remote.conf b/roles/rsyslog/files/remote.conf index 1c89ef5..3e85ce0 100644 --- a/roles/rsyslog/files/remote.conf +++ b/roles/rsyslog/files/remote.conf @@ -1 +1,2 @@ +## Send everything to central *.* @syslog.dmz.mateu.be diff --git a/roles/rsyslog/files/sys.conf b/roles/rsyslog/files/sys.conf index ff583ae..c78faf3 100644 --- a/roles/rsyslog/files/sys.conf +++ b/roles/rsyslog/files/sys.conf @@ -1,7 +1,7 @@ template(name="RemoteHost" type="string" string="/srv/log/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%.log.gz") ## Loads UDP -module(load="imudp" port="514") +module(load="imudp") ruleset(name="remote") { action(type="omfile" DynaFile="RemoteHost" zipLevel="5")