> i need your advice. my squid server stalled because /var is full 100%
> should i remove the log messages there.
>
the best way of doing this is to use logrotate. it is a daemon that
monitors your log files and rotates them. it is easy to configure.
here is the contents of my squid logrotate file.
/u1/squid/access.log {
rotate=20
notifempty
compress
size=100M
copytruncate
}
/u1/squid/cache.log {
rotate=5
notifempty
compress
size=10M
copytruncate
}
what does it do? it keeps 20 back issues of my access.log (for future
usage monitoring) and compresses them. each log file size will be 100M
uncompress. you can deduce what the second one does. hehehe.
cheers!
--------------------------------------
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email : [EMAIL PROTECTED]
web : http://cersa.admu.edu.ph/
phone : 63(2)4266001-5925/5904
today, n.:
A nice place to visit, but you can't stay here for long.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]