Rsyslog : activer le log d’un hôte distant

Boris HUISGEN February 5, 2013

administration système linux rsyslog

root@lovejoy:~# mkdir /var/log/remote
root@lovejoy:~# vim /etc/rsyslog.conf

# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514

# rules
if $fromhost-ip startswith '10.0.0.1' then /var/log/remote/host.log
& ~

root@lovejoy:~# /etc/init.d/rsyslog restart

See also

Debian : flashback avec dpkg
Read more
Amavis : utilisation d’un RAM-disque
Read more
Debian : installation des librairies 32 bits
Read more