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

    Logging without clog

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 3.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.
    • R
      RybL
      last edited by

      Hi,

      I would like to keep all log files on the pfsense server.

      Unfortunatly clog overwrites the entries regularly or after a reboot.

      Is it possible to deactivate clog somehow or to increase size of the cirular log files?

      Thanks!

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

        Not easily, but it can be done. You can edit the file that generates our syslog.conf and remove the % from the start of each log file. That will use plain text instead of clog.

        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
        • R
          RybL
          last edited by

          Thank you for the answer.

          Which file do I have to edit exactly.
          I'm not very familiar with the system.

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

            It would be in /etc/inc/system.inc

            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
            • L
              Leiste
              last edited by

              Hi,
              I'm also interested in holding the logs.
              I had a look at the system.inc and I'm just finding this %-sign:

              $clog_log = "%";

              What should we put in instead of the % - or schould we just delete?

              Thanks,

              Leiste

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

                Just remove it. Without the % it logs to just normal plain text files.

                Be aware, you will have to monitor the logs and either rotate them manually or setup an automated process.

                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.