Rsyslog: Difference between revisions

161 bytes added ,  6 years ago
no edit summary
No edit summary
No edit summary
Line 1:
Setting up== Syslog Server in Ubuntu:==
 
Rsyslog will be installed by default in Latest Ubuntu server:.
Install it if it is not already installed:
sudo apt-get install rsyslog
 
Edit the Rsyslog config file
Line 14 ⟶ 16:
$InputTCPServerRun 514
 
Restart rsyslog service
sudo service rsyslog restart
 
Verify if the Server listens to this port
netstat -an | grep 514
 
To validateValidate your rsyslog configuration file:
sudo rsyslogd -N1
 
On= theSyslog Client Machine:=
 
On the Client Machine:
sudo nano /etc/rsyslog.d/50-default.conf
 
Line 30 ⟶ 35:
*.* @10.107.88.93:514
 
Restart rsyslog service
sudo service rsyslog restart
 
Verification:
logger -p local4.info " This is a info message from local 4"