Created
June 2, 2019 03:25
-
-
Save eagleEggs/b631a9e791e5fded65bdbffaf7e02c28 to your computer and use it in GitHub Desktop.
syslog centos
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
/etc/rsyslog.conf | |
$ModLoad imudp | |
$UDPServerRun 514 | |
$template RemoteLogs,"/var/log/%HOSTNAME%/%PROGRAMNAME%.log" | |
. ?RemoteLogs & ~ | |
firewall-cmd --permanent --add-port=514/tcp | |
firewall-cmd --permanent --add-port=514/udp | |
firewall-cmd --reload | |
ref: https://www.tecmint.com/create-centralized-log-server-with-rsyslog-in-centos-7/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment