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

    Log files

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I know there's a few log parsers out there, but I really like the way pfense does it. I believe one of the more popular ones is kiwi but after mucking around with it I didn't like the way the information was presented.

      Does pfsense retain all logs and only "show" up to a point on the logs tab? I have number of logs to show set for 300 only because I'm hoping to at least keep 300 worth but I suspect it retains more. Is there a hard limit to how much it'll keep, is there a way for me to increase it? While not super large, I do have a 30gb drive in there that's used for nothing else.

      If this is an ignorant way of log diving is there anyone using something that they can export settings for us humble laymen?

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

        pfSense uses a binary circular log (clog) format, and they only keep up to a certain number of bytes. The log files never grow or shrink, when they "fill up" they simply roll over and start back at the beginning and the log parser (clog) keeps a pointer to know where the first entry really is.

        They aren't meant to be long-term storage.

        There may eventually be an option in the GUI to use a more traditional log file, but we have always recommended offloading the logs to a "real" syslog server to keep them indefinitely.

        If you're interested in the firewall log view, you could always run any logs you want through pfSense's filterparsrer.php command-line script to have it simplify the output.

        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
        • ? This user is from outside of this forum
          Guest
          last edited by

          Would I just need to take that one php file, stick it behind an apache service and modify the php code to pull from the log file I specify? From what little I gather from the php file, it has a few dependencies :-(

          $filter_logfile = "{$g['varlog_path']}/filter.log";

          ^ I should just change this or simply have syslog name my log file?

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