Categories
System/Linux/Unix*

Openwrt 新增 syslog-ng , 把記錄 log 到另一台 syslog server

cat /etc/syslog-ng.conf
(省略)
destination d_monster_syslog_server {
	udp( "192.168.1.123" port(514) );
	file( "/var/log/logfile_$YEAR$MONTH$DAY.log" );
};

log {
	source(src);
	source(net);
        source(kernel);
        destination( d_monster_syslog_server );
};