Enhancement #3290

squid log file rotation

Added by Filippo Carletti almost 6 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-squid
Target version:v6.7
Resolution: NEEDINFO:No

Description

squid logfile rotation is handled by logrotate. We have to disable built-in squid log rotation.

Associated revisions

Revision ffcb1e73
Added by Filippo Carletti almost 6 years ago

squid.conf: add logfile_rotate 0 option. Refs #3290

History

#1 Updated by Filippo Carletti almost 6 years ago

  • Status changed from NEW to TRIAGED
  • Assignee set to Filippo Carletti
  • % Done changed from 0 to 20

/var/log/squid contains double logs:

-rw-r-----. 1 squid squid      0 Oct 22 19:12 cache.log.0
-rw-r-----. 1 squid squid    777 Oct 22 19:12 cache.log-20151021.gz

The ".?" are always zero in size.

#2 Updated by Filippo Carletti almost 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#3 Updated by Filippo Carletti almost 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Filippo Carletti)
  • % Done changed from 30 to 60

#4 Updated by Filippo Carletti almost 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

Package in nethserver-testing:
nethserver-squid-1.3.9-1.3.gffcb1e7.ns6.noarch.rpm

Test case:

# squid -k parse 2>&1 | grep logfile
2015/10/22 21:28:30| Processing: logfile_rotate 0

And, after the weekend, when logs are rotated, there'd be only the .gz logfiles.

#5 Updated by Adam P almost 6 years ago

  • Assignee set to Adam P

#6 Updated by Adam P almost 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Adam P)
  • % Done changed from 70 to 90

System and Package Version installed
ESXi 5.1 VM - Clean install of Nethserver 6.7 fully updated - 2 eth
Packages installed: Basic firewall, DNS and DHCP server, Intrusion Prevention System, Web filter, Web proxy, Web server

Install Updated Package
yum --enablerepo=nethserver-testing update nethserver-squid
Package:
nethserver-squid-1.3.9-1.3.gffcb1e7.ns6.noarch.rpm

Test Results after update
Test case 1
Ran the following command:
logrotate -f /etc/logrotate.conf

Logs rotated as expected.

Verified or Reopen
Verified

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-squid-1.3.10-1.ns6.noarch.rpm

Also available in: Atom PDF