[syslog-ng]$TEMPLATE available with unix-stream

Loic Minier syslog-ng@lists.balabit.hu
Mon, 9 Aug 2004 10:15:31 +0200


Loic SPINDLER <lsp@oleane.net> - Mon, Aug 09, 2004:

> I'd need to have syslog messages catched by the syslog-ng and forwarded to
> local daemon using unix-stream. 

 I think that the unix-*() destination drivers should do the trick.
    <http://www.balabit.com/products/syslog_ng/reference/book1.html>
    (Section 3)

> Moreover, as I collect different facilities and level I'd like to ask
> syslog-ng to add to each line forwarded the $FACILITY to the beginning of
> the line.

 Like with the template() option?  Not sure wether it works with
 unix-*(), but you can use program() and call something that connects to
 the Unix socket (for example socat).

-- 
Loïc Minier <lool@dooz.org>