Created
May 16, 2019 03:08
-
-
Save jenting/2cce0f971761ef9363bdf49c474c2dfd to your computer and use it in GitHub Desktop.
rsyslog server (RFC3164/RFC5424)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Module | |
module( | |
load="imudp" | |
) | |
module( | |
load="imtcp" | |
MaxSessions="2000" | |
) | |
# Input | |
input( | |
type="imudp" | |
Port="1514" | |
Ruleset="udp" | |
) | |
input( | |
type="imtcp" | |
Port="1514" | |
Ruleset="tcp" | |
) | |
# Rules | |
ruleset(name="udp") { | |
action( | |
type="omfile" | |
dirCreateMode="0700" | |
FileCreateMode="0644" | |
File="/var/log/messages-udp-rfc3164" | |
) | |
action( | |
type="omfile" | |
Template="RSYSLOG_SyslogProtocol23Format" | |
dirCreateMode="0700" | |
FileCreateMode="0644" | |
File="/var/log/messages-udp-rfc5424" | |
) | |
} | |
ruleset(name="tcp") { | |
action( | |
type="omfile" | |
dirCreateMode="0700" | |
FileCreateMode="0644" | |
File="/var/log/messages-tcp-rfc3164" | |
) | |
action( | |
type="omfile" | |
Template="RSYSLOG_SyslogProtocol23Format" | |
dirCreateMode="0700" | |
FileCreateMode="0644" | |
File="/var/log/messages-tcp-rfc5424" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment