= Logging remoto di una macchina OpenWrt = /!\ '''CAUTION, WORK IN PROGRESS''' /!\ * {{{syslog-ng}}} installato su computer remoto * {{{ntpd}}} * {{{opkg install syslog-ng}}} su router openwrt * aggiungere ad {{{/etc/syslog-ng/syslog-ng.conf}}} su computer remoto {{{ source remote { tcp(max_connections(10)); }; filter f_openwrt{ host( "10.100.0.1" ); }; destination d_openwrt { file("/var/log/openwrt.log"); }; #log { source(remote); filter(f_everything); destination(d_openwrt);}; log { source(remote); filter(f_openwrt); destination(d_openwrt);}; }}} * {{{/etc/syslog-ng/syslog-ng.conf}}} su router {{{ options { chain_hostnames(off); sync(0); stats(43200); }; source src { unix-stream("/dev/log"); internal(); }; source kernel { file("/proc/kmsg"); }; destination messages { file("/var/log/messages"); }; destination remote { tcp("10.100.0.42"); }; log { source(kernel); destination(remote); }; log { source(src); destination(remote); }; log { source(src); destination(messages); }; }}}