March 15, 2014

Configure a System to Accept Logging from a Remote System

UDP

Edit /etc/rsyslog.conf and enable module imudp.

$ vi /etc/rsyslog.conf
...
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
...

Restart rsyslog to let changes take effects.

$ service rsyslog restart

TCP

Edit /etc/rsyslog.conf and enable module imtcp.

$ vi /etc/rsyslog.conf
...
# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
...

Restart rsyslog to let changes take effects.

$ service rsyslog restart

No comments: