LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   New SQUID user: How to clear the "access.log" and "store.log" automatically? (http://www.linuxquestions.org/questions/linux-networking-3/new-squid-user-how-to-clear-the-access-log-and-store-log-automatically-25162/)

yuzuohong 07-06-2002 01:33 AM

New SQUID user: How to clear the "access.log" and "store.log" automatically?
 
Hi all,

I'm new to SQUID program. Actually, I have two questions.

1. How to set the limitation size for these two files?

2. I think my current limitation size for these two files is 2GB. Because you know, when one of them reach 2GB, my SQUID stops. So I have to "mv access.log(store.log) access1.log(store1.log)". Then I can start SQUID process. I wonder if SQUID can do this kind of opration itself?

Any suggestion will be appreciated.

fish

Griffon26 07-10-2002 04:10 AM

You can use logrotate to do stuff like this.

Quote:

Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.

soumalya 12-02-2006 05:37 AM

How to clear the "access.log" and "store.log" automatically? Reply to Thread
 
u have suffested to use logrotate


but i dont understand what is logrotate?

can u plzzzzzzzzzzzzzzzzz explain this logrotate?


All times are GMT -5. The time now is 09:04 AM.