On 2008-12-03 04:57, Peter Van Lone wrote:
#this is for separating out network hosts into individual log files destination std { file ("/var/log/HOSTS/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY" owner(root) group(root) perm(0600) dir_perm(0700) create_dirs (y\es)
Why is there a backslash in 'y\es' ? Try removing that, so that it reads create_dirs(yes)
Is there anything in particular about this line that I have gotten wrong? As far as I can tell it is right out of the example I worked from, but since I really do not understand the logic that is being used, or the particular rules of syntax, I'm not sure what the problem might be.
I can't spot anything, other than mentioned above. This is what i use to capture the log from my linksys router: source s_network { udp(ip("0.0.0.0") port(514)); }; filter f_ddwrt { host("DD-WRT") and not match("10.0.47.254"); }; destination d_ddwrt { file("/var/log/ddwrt/$FACILITY" owner(root) group(root) perm(0600)); }; log { source(s_network); filter(f_ddwrt); destination(d_ddwrt); }; But as you can see, i don't use create_dirs.
Peter
/Sylvester -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org