OpenWrtRemoteLogging

Logging remoto di una macchina OpenWrt

/!\ CAUTION, WORK IN PROGRESS /!\

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);};

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); };
l'ultima modifica รจ del 2011-06-09 22:50:08, fatta da ClauzClauz