Skip to content

Instantly share code, notes, and snippets.

@eagleEggs
Created June 2, 2019 03:25
Show Gist options
  • Save eagleEggs/b631a9e791e5fded65bdbffaf7e02c28 to your computer and use it in GitHub Desktop.
Save eagleEggs/b631a9e791e5fded65bdbffaf7e02c28 to your computer and use it in GitHub Desktop.
syslog centos
/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