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

    Log files, BNF format, and jEdit

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 851 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 Offline
      garyn
      last edited by

      The documentation says that pfsense log files are BNF format.  My setup is still new (1.5 months) and the log files have not completely filled up and wrapped around yet.  When I download the resolver log file (I am having a problem with unbound stopping unexpectedly), jEdit seems to load correctly up to the point where the valid data ends (guessing the remainder of the file is null) and then it crashes with out-of-heap error.  jEdit can normally can deal with most file types.

      Anyone else using jEdit that could post a tip about viewing log files which are partially full?

      jEdit running out of heap which is a symptom rather than a root cause as I have increased the JAVA heap size to 2G.  jEdit defaults to cp1252 format.

      Thanks!

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

        You seem to have mixed up a few terms.

        1. pfSense log files in general are CLOG format, a binary circular log. You can't open them properly in a plain text editor.

        2. pfSense firewall log entries on 2.2 and later are in a form of CSV format described at https://doc.pfsense.org/index.php/Filter_Log_Format_for_pfSense_2.2, the log itself is still a clog file.

        3. The "BNF" term is used on the link above is for Backus–Naur Form which is the type of grammar used to convey the actual layout of data in the filter log entries. The log is comma-separated, BNF refers to the way the page shows you how the CSV data can be present in the log entries.

        Long story short, you'll need to run the log files through clog to get plain text as described in the link on point 1 if you wish to open them in a text editor.

        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.