Для gentoo.
Редактируем /etc/syslog-ng/syslog-ng.conf.
source net {
udp (ip(local_ip) port(514));
};
destination d_devicename { file("/var/log/logname.log"); };
filter f_devicename { netmask("remote_ip/255.255.255.255"); };
log { source(net); filter(f_devicename); destination(d_devicename); };
Редактируем /etc/syslog-ng/syslog-ng.conf.
source net {
udp (ip(local_ip) port(514));
};
destination d_devicename { file("/var/log/logname.log"); };
filter f_devicename { netmask("remote_ip/255.255.255.255"); };
log { source(net); filter(f_devicename); destination(d_devicename); };
Комментариев нет:
Отправить комментарий