Butterfly Bones
Very Senior Member
Thank you again. I just seem to have some block to understand the proper syntax on scripts. I keep hoping if I stay immersed in this, it will eventually get through the clouds the keep me from understanding. That is why I ask first on scripts. Everything else I just charge in and make a mess, then figure out how to clean it up.err, not quite, you missed a "};" (extra LFs added for clarity)
Putting the filter statements on separate lines is entirely stylistic.Code:# log ethernet change to /opt/var/log/ethernet.log only destination d_ethernet { file("/opt/var/log/ethernet.log"); }; filter f_ethernet { message("eth1") or message("eth2") or message("eth3") or message("eth4") or message("eth5") or message("eth6") or message("eth7") or message("eth8") or message("br0:"); }; filter f_kernel { program("kernel") ; }; }; log { source(src); source(kernel); filter(f_ethernet); filter(f_kernel); destination(d_ethernet); flags(final); }; #eof
EDIT - corrected the above filter list (ethernet filter) to work correctly
Last edited: