How to clear & clean squid logs safe?



  • 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.



  • 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.



  • @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?



  • 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.


Log in to reply