Remove the comments from these lines to activate TCP remote logging.
#$ModLoad imtcp.soso that they look like this
#$InputTCPServerRun 514
$ModLoad imtcp.soOpen the firewall and save the configuration change to the firewall:
$InputTCPServerRun 514
iptables -I INPUT -p tcp --dport 514 -j ACCEPT; service iptables saveAll that remains is to restart the logging daemon:
service rsyslog restartNote that you could use UDP instead or as well as TCP. The rsyslog manual is your friend.
No comments:
Post a Comment