Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu Server 12.04 LTS installed. Squid keeps only last 3 days logs. Does anybody know how to increase this duration?

I use cron to rotate them on daily basis.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The logrotate configuration file /etc/logrotate.d/squid3 is already part of the squid3 package.

Edit this file to your needs.

E.g. set rotate 7 to preserve 7 rotated versions of the log file.

See also: man 8 logrotate

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.