Comment 8 for bug 1535440

Revision history for this message
Swann Croiset (swann-w) wrote :

The fix is incomplet because the logrotate configuration of the package still sets a wrong permission.

# logrotate -f -v /etc/logrotate.d/influxd
Ignoring /etc/logrotate.d/influxd because of bad file mode.

Handling 0 logs

This command solves the issue:
# chmod g-w /etc/logrotate.d/influxd

# logrotate -f -v /etc/logrotate.d/influxd
reading config file /etc/logrotate.d/influxd

Handling 1 logs

rotating pattern: /var/log/influxdb/influxd.log forced from command line (7 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/influxdb/influxd.log
  log needs rotating
rotating log /var/log/influxdb/influxd.log, log->rotateCount is 7
dateext suffix '-2016032510'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
destination /var/log/influxdb/influxd.log-2016032510.gz already exists, skipping rotation