[syslog-ng]logging to two files simultaneously

Balazs Scheidler syslog-ng@lists.balabit.hu
Thu, 10 Mar 2005 11:59:22 +0100


On Wed, 2005-03-09 at 14:21 -0500, Mike Pepe wrote:
> I'm trying to log to two files at the same time. What's the best way to 
> do it?
> 
> I put two destinations in a log block, but it doesn't log to both places.
> 
> Is there a trick to doing this?

it should log to all referenced destinations in a log block, it works
with this configuration:


source src { udp(port(2000)); internal(); };

destination d_a { file("a"); };
destination d_b { file("b"); };

log { source(src);  destination(d_a); destination(d_b); };

-- 
Bazsi