[syslog-ng] YACC Stack Overflow

Balazs Scheidler bazsi at balabit.hu
Fri Jan 16 14:49:02 CET 2009


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



More information about the syslog-ng mailing list