Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sarg clear Squid User Access Reports

Status
Not open for further replies.

GrimR

IS-IT--Management
Jun 17, 2007
1,149
0
0
ZA
Anyone know how I can clear the logs for User Access Reports
 
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top