From 8c9cfee125e5a14d57f8e15a4d0a40f96de5b796 Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Fri, 10 Nov 2023 14:21:47 +0100 Subject: [PATCH] FIXBUG: add rsyslog.conf --- rsyslog.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rsyslog.conf diff --git a/rsyslog.conf b/rsyslog.conf new file mode 100644 index 0000000..7fccc22 --- /dev/null +++ b/rsyslog.conf @@ -0,0 +1,28 @@ +# Provides support for local system logging (e.g. via logger command). +module(load="imuxsock") + +# Receive messages from remote host via UDP +# for parameters see http://www.rsyslog.com/doc/imudp.html +module(load="imudp") # needs to be done just once +input( + type="imudp" + port="514" +) + +# send all to remote +$ActionQueueFileName fwdRule1 # unique name prefix for spool files +$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible) +$ActionQueueSaveOnShutdown on # save messages to disk on shutdown +$ActionQueueType LinkedList # run asynchronously +$ActionResumeRetryCount -1 # infinite retries if host is down +*.* @@_syslog.dalembert.upmc.fr + +# Sets default permissions for all log files. +$FileOwner root +$FileGroup adm +$FileCreateMode 0640 +$DirCreateMode 0755 +$Umask 0022 +# send all to messages +*.* -/var/log/messages +