FIXBUG: add rsyslog.conf

This commit is contained in:
Patrick Cao Huu Thien 2023-11-10 14:21:47 +01:00
parent 667ada2402
commit 8c9cfee125
Signed by untrusted user who does not match committer: pcao
GPG Key ID: B57DBE40C72FBCF4
1 changed files with 28 additions and 0 deletions

28
rsyslog.conf Normal file
View File

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