16 Jan
2009
16 Jan
'09
1:49 p.m.
On Fri, 2009-01-16 at 14:15 +0100, Cauchi, Geoffrey, VF-MT wrote:
Hi
Thanks for your suggestion to use macros. This should do the job with the minimum changes to the server. Furthermore it will allow me to reduce the config by a huge number of lines. :-)
I tried the following, but I'm doing something incorrect :(
source Cisco_Switch { udp(ip(0.0.0.0) port(514)); };
destination d_files_per_ip { file("/var/log/cisco/switches/$SOURCEIP/log.txt" perm(0755) dir_perm(0755) create_dirs(yes) ); };
log { source(Cisco_Switch); destination(d_files_per_ip); };
And what's the problem? the config seems to be just fine. -- Bazsi