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

    Pfsense log format and info?

    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.
    • M
      mlucia
      last edited by

      Hello,

      I am working to add support for pfsense to opensim, and have a couple of questions about the log content and format so that I can write the regex to parse the logs.

      I am working with 1.2.3RC2

      Is there a chunk of code that identifies the format and content? I am primarily interesting in the filter log output.

      Thanks - Mark

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

        The regex and related code I used for parsing the filter log should be in /usr/local/www/includes/log.inc.php, in the function parse_filter_line($line).

        That code is in version 1.2.3-RC(1, 2, or 3) or on earlier versions can be obtained by installing the Dashboard package.

        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.