Mar 16, 2009 #1 GrimR IS-IT--Management Joined Jun 17, 2007 Messages 1,149 Location ZA Anyone know how I can clear the logs for User Access Reports
Mar 18, 2009 #2 QatQat IS-IT--Management Joined Nov 16, 2001 Messages 1,031 Location IT What do you want to do specifically? clear just the logs ? clear and rebuild squid cache? are you the root user? if yes you can easily ask squid to clear its cache Code: squid -k shutdown rm /var/lib/squid/cache squid -z TO simply get a clean access.log Code: squid -k rotate This will force a log rotate If you shut down the daemon properly you can also delete the log manually. If you want to prevent squid from logging to access.log add/uncomment the following in squid.conf. Code: cache_access_log /dev/null QatQat If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux! Upvote 0 Downvote
What do you want to do specifically? clear just the logs ? clear and rebuild squid cache? are you the root user? if yes you can easily ask squid to clear its cache Code: squid -k shutdown rm /var/lib/squid/cache squid -z TO simply get a clean access.log Code: squid -k rotate This will force a log rotate If you shut down the daemon properly you can also delete the log manually. If you want to prevent squid from logging to access.log add/uncomment the following in squid.conf. Code: cache_access_log /dev/null QatQat If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!