Answers for "setting up centos 7 as a syslog server"

0

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
Posted by: Guest on May-16-2020

Code answers related to "setting up centos 7 as a syslog server"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language