Enhancement #3273

Rotate /var/log/sid_changes.log

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

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

100%

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

Description

/var/log/sid_changes.log is not rotated

Associated revisions

Revision dfe1c386
Added by Filippo Carletti almost 6 years ago

Add pulledpork sid_changes log rotation. Refs #3273

History

#1 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.7
  • % Done changed from 0 to 20

#2 Updated by Filippo Carletti almost 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Filippo Carletti
  • % 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

In nethserver-testing:
nethserver-pulledpork-1.0.1-1.1.gdfe1c38.ns6.noarch.rpm

Test case
on a system where /var/log/sid_changes.log contains data, upgrade the package and force a log rotation:

logrotate -f /etc/logrotate.conf

Or wait next week for automatic log rotation.
You should find two files:
/var/log/sid_changes.log
/var/log/sid_changes.log-201510xx

#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

Test Original Problem
Confirmed sid_changes.log does not rotate.

Install Updated Package
yum --enablerepo=nethserver-testing update nethserver-pulledpork
Package:
nethserver-pulledpork-1.0.1-1.1.gdfe1c38.ns6.noarch.rpm

Test Results after update
Test case 1
Ran command to force log rotation:
logrotate -f /etc/logrotate.conf

Two files existed in /var/log:
/var/log/sid_changes.log
/var/log/sid_changes.log-20151029

Changed IPS settings to force activity to be written to logs and confirmed they were written to the correct log file (sid_changed.log)

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

<

Also available in: Atom PDF