module_alpine_rsyslog/rsyslog.conf

29 lines
858 B
Plaintext

# 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