Solved: How to clean /var/spool/squid logs on Redhat Satellite server ?
Today we will see how to clean the squid logs from redhat satellite server.
It will help us to clean the logs in case its filling up the partition.
I. Issue: The squid logs taking upto 19Gb for a file.
[root@ngelinux001 squid]# pwd /var/spool/squid [root@ngelinux001 squid]# du -sh * | grep G 18.8G 00
II. Solution
### a. Stop the squid daemon # systemctl stop squid ### b. Goto the directory # cd /var/spool/squid ### c. Now remove all squid files. You can take backup on some partition if you have space. # rm -f * ### To create new swap directories here. # squid -z (press return) ### Restore the selinux context. # restorecon -RFv * ## required only when selinux is running in enforcing mode ### Start SQUID daemon # systemctl start squid ### Check the daemon status # systemctl status squid
III. Check the service status
Last but not least we can check the overall service status and verify all is working fine.
# Katello-service status -b