[squid-users] How can i keep log files for longer periods?
squid-list
squid at visolve.com
Tue Mar 17 10:24:14 UTC 2015
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 at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150317/41bce270/attachment.html>
More information about the squid-users
mailing list