logging to two files simultaneously
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? curious... -Mike
On Wed, 9 Mar 2005, 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?
two log blocks. destination hosts { file("/var/syslog/HOSTS/$HOST/$YEAR/$MONTH/$HOST-$FACILITY-$YEAR$MONTH$DAY" owner(root) group(root) perm(0755) dir_perm(0755) create_dirs(yes)); }; destination bulklog { file("/var/syslog/AGGREGATE/$YEAR/$MONTH/$FACILITY-$YEAR$MONTH$DAY" owner(root) group(root) perm(0755) dir_perm(0755) create_dirs(yes)); }; log { source(external); destination(bulklog); }; log { source(external); destination(hosts); }; - billn
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
participants (3)
-
Balazs Scheidler
-
Bill Nash
-
Mike Pepe