Installation:
Code: Select all
opkg install syslog-ng3
and missing dependency, syslog-ng won't start without it
opkg install libdbi
Code: Select all
root@Gargoyle:~# cat /etc/syslog-ng.conf
@version:3.0
options {
chain_hostnames(no);
create_dirs(yes);
flush_lines(0);
keep_hostname(yes);
log_fifo_size(256);
log_msg_size(1024);
stats_freq(0);
flush_lines(0);
use_fqdn(no);
};
source src {
internal();
unix-stream("/dev/log");
};
source net {
udp(ip(0.0.0.0) port(514));
};
source kernel {
file("/proc/kmsg" program_override("kernel"));
};
destination messages {
file("/var/log/messages");
};
destination d_udp { udp("192.168.0.113" port(514)); };
log {
source(src);
source(net);
source(kernel);
destination(d_udp);
# destination(messages);
};
Code: Select all
destination routermsg { file("/var/log/router.log"); };
filter f_router { host(192.168.0.1); };
log { source(remoteudp); filter(f_router); destination(routermsg); };
I have already set the conloglevel to 5
Code: Select all
system.@system[0].conloglevel=5
uci commit
reboot