set up syslog server centos 6 code example
Example: setting up centos 7 as a syslog server
yum -y install rsyslog
vi /etc/rsyslog.conf
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
systemctl restart rsyslog
netstat -antup | grep 514
firewall-cmd --permanent --add-port=514/tcp
firewall-cmd --reload
firewall-cmd --permanent --add-port=514/udp
firewall-cmd --reload
tail -f /var/log/messages