What you'll need to do is just uncomment 2 lines in the /etc/rsyslog.conf file:
# provides UDP syslog receptionThat's if you want to provide UDP syslog service. Uncomment the following 2 lines if you want to provide TCP syslog service:
$ModLoad imudp
$UDPServerRun 514
# provides TCP syslog receptionOnce you've made the changes, either reload or restart the rsyslogd service:
$ModLoad imtcp
$InputTCPServerRun 514
myhost:/etc# /etc/init.d/rsyslog reloadI've chose to enable UDP for my server. We'll use netstat to check if rsyslogd is listening to the specified port:
Reloading enhanced syslogd: rsyslogd.
myhost:/etc# netstat -tlnup | grep 514rsyslogd is indeed listening to the proper port and protocol.
udp 0 0 0.0.0.0:514 0.0.0.0:* 13282/rsyslogd
udp6 0 0 :::514 :::* 13282/rsyslogd
Next stop, actual logging and probably more configuration :)
1 comments:
how i have to configure the /etc/rsyslog.conf file in the client-side? i have to insert the server address?
Post a Comment