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

    How to clear & clean squid logs safe?

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 4 Posters 3.9k 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.
    • T
      thanhlangso
      last edited by

      Hello, My firewall has lager squid log (24G /var/squid/logs)
      I want to clear , clean , reset logs to safe. so how? somebody help me.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        You can manually stop the squid service and then delete the contents of /var/squid/logs yourself then restart squid. However, a better solution might be for you to enable log rotation and then specify how many days of logs you want to keep. Services - Squid Proxy Server - General - Logging Settings.

        T 1 Reply Last reply Reply Quote 0
        • T
          thanhlangso @KOM
          last edited by

          @KOM said in How to clear & clean squid logs safe?:

          You can manually stop the squid service and then delete the contents of /var/squid/logs yourself then restart squid. However, a better solution might be for you to enable log rotation and then specify how many days of logs you want to keep. Services - Squid Proxy Server - General - Logging Settings.

          Hi, Is this a safe way?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            I don't know of any other way. When you start squid and it finds no logs it will create a new one and go from there.

            1 Reply Last reply Reply Quote 0
            • Graham1989G
              Graham1989
              last edited by

              I also do it manually, haven't found another easier way yet. I'm also interested if there's another way to do that, not sure that there is a safer method, but who knows.

              1 Reply Last reply Reply Quote 0
              • AlexAlex0A
                AlexAlex0
                last edited by

                I admit that this is one of the problems with Squid as a package with pfSense, it doesn't rely on automatic log rotation and clean-up. I still do it manually, but if there is a software that can do this automatically, I'm in.

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