Articles → LINUX → Enable Syslog In Linux

Enable Syslog In Linux


sudo -i

yum install rsyslog

sudo nano /etc/rsyslog.conf

$ModLoad imudp
$UDPServerRun 514

$ModLoad imtcp
$InputTCPServerRun 514

Picture showing editing the rsyslog.conf file
Click to Enlarge

Restart The Service

sudo service rsyslog restart
sudo systemctl restart rsyslog

Check The Service

netstat -plan | grep tcp

Picture showing checking if 514 port is listening or not using netstat
Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Friday, July 15, 2022


Your Email Id  
Query/FeedbackCharacters remaining 250