[syslog-ng] Generate filename with part of message.

Fabien Wernli wernli at in2p3.fr
Thu Sep 26 18:29:47 UTC 2019


Hi,

On Thu, Sep 26, 2019 at 06:20:46PM +0000, William Luiz Ribeiro Vasconcelos Da Silva wrote:
> It's possible get part of the message obtained by syslog-ng to compose the file name.

Yes, you can use any macro (variable) in the file name:

   file("/path/to/${MACRONAME:-defaultval}.log")

In your example, use csv-parser to extract the corresponding column



More information about the syslog-ng mailing list