Why?


Search This Blog

Friday, July 22, 2016

CentOS 7 rsyslog Server Setup

CentOS 7 rsyslog Server Setup

I have firewall off and selinux disabled

Install if needed

# yum -y install rsyslog
 
Edit the config file
 
# vi /etc/rsyslog.conf
 
Change to the following
 
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
 
# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
 
Restart service
 
# systemctl restart rsyslog.service 

Now just point your devices to this server on port 514
Default location is /var/log for the files. This can be changed
in the rsyslog.conf file.

1 comment: