Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GeorgPeters
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.