How to configure syslog-ng to support multiple files per syslog source?



  • Hi,

    I installed the syslog-ng package and got it running with default parameters. But now I like store the logdata of each source (by IP address) in a separate file.

    I found a hint in the syslog-ng documentation version 3.8 page 37
    https://www.balabit.com/support/documentation

    –quote--
    If you want to create separate log files for every client host, use the ${HOST} macro when specifying the filename, for example:
    destination d_local { file("/var/log/messages_${HOST}"); };
    --quote--

    How can this be done with the webinterface of syslog-ng in pfSense?

    Best regards

    Georg