Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.