Search squid archive

Re: How can i keep log files for longer periods?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

You can use the following in squid configuration to have access log for log time.

logfile_rotate 10

It will keep last 10 access log of squid. If you wish to have log for month, use it as 30. You may rotate squid log using crontab.  Following will rotate log at every morning 6.

00      6       *       *       *      squid -k rotate

- Siva Prakash

On 03/17/2015 03:20 PM, Brijesh B. Mehta wrote:
Hello,

I am new to squid and using it for few days. i found that in my squid
configuration (which default i guess) access log of only three days is
being maintained (/var/log/squid3/). Now i want to store access log of
more than 3 days say for month so what changes i need to make in my
configuration file? I already read about rotate a log file but it
confused me so i haven't tried it yet.
Kindly provide me some solution

Thanks

Regards,

Mr. Brijesh B. Mehta
Research Scholar,
Computer Engineering Department,
S. V. National Institute of Technology,
Surat - 395007
Gujarat, India
http://brijeshbmehta.wordpress.com/

Tips:
If you forward this email, please delete the forward history,
including my email address.
Remember, erasing the history helps to prevent SPAMMERS from mining
addresses and viruses from being propagated.
Also enter the addresses on the "Bcc" line to hide them from others.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux