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

    Log File Upper Size Limit

    General pfSense Questions
    2
    2
    570
    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
      NOYB
      last edited by

      This thread has potentially raised an issue.
      https://forum.pfsense.org/index.php?topic=120663.0

      In that thread the user has 2.4 million log records.  It has me wondering if the issue, rather than the 10K limit, may actually be something else, such as memory starvation, or PHP script processing time limit, etc. preventing the PHP script command* from getting to the most recent 10K log records.

      • PHP script command
        /etc/inc/filter_log.inc:146
        $tail var is 10000
      
      exec("/usr/local/sbin/clog " . escapeshellarg($logfile) . " | /usr/bin/grep -v \"CLOG\" | /usr/bin/grep -v \"\033\" | /usr/bin/grep -E $pattern | /usr/bin/tail -r -n {$tail}", $logarr);
      
      

      How likely do you think that is?

      If it is should the log file size config setting have an upper limit?

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

        Since performance is largely dependent on hardware, any such limit would be hard to nail down.

        It's reasonable to have an upper bound but figuring out what that might be across various hardware platforms and combinations would be an adventure.

        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.