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

    Question about log-format graylog/pfsense?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 2.2k 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.
    • N Offline
      np422
      last edited by

      Hello,

      I'm trying to send log-messages from pfsense to a remote graylog server, which as of yet isn't entirely successful. All messages ends up having "filterlog" as source - which would be fine if it only was one firewall that was sending log messages to our graylog server, but with multiple firewalls logging to the same graylog server sorting and searching becomes a little bit difficult.

      According to https://doc.pfsense.org/index.php/Filter_Log_Format_for_pfSense_2.2 the format should be:

      <timestamp><hostname>filterlog: <csv data="">But as far as I can see when I take a closer look at the message going over the wire the hostaname part seems to be missing.

      Is there anyway that the filterlog/syslog can be convinced to insert the hostname of the sending host into a message before it is delivered to a remote log-server?</csv></hostname></timestamp>

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        The quoted format is for the local log, not remote logs.

        Syslog always assumes the hostname from the source IP address or hostname, NOT from the log message data itself.

        Your server should be classifying the sources by their IP address/hostname in some way, it shouldn't care about the message content identifying itself.

        "filterlog" is the name of the daemon that made the log message.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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