Project

General

Profile

Actions

Bug #10912

closed

Duration of logrotate for /var/log/rudder/ is too long making /var/log too big

Bug #10912: Duration of logrotate for /var/log/rudder/ is too long making /var/log too big

Added by François ARMAND over 8 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

For now, we can't configure the duration of the retention of logs in /var/log/rudder which managed by logrotate, itself managed by Rudder (the one managed by logback can be changed in the logback.xml file not managed by rudder itself).

The correct solution would be to add a new parameter to make the duration configurable.

See also #10899 for the architecture constraints on that ticket (can impact the version on which we will be able to change the behavior)

For the record, workaround is to have a defaut value of 30 days for log rotation, and if the Parameter log_duration is defined, then the defined value will be used to define rotation (as a number of days)


Related issues 1 (1 open0 closed)

Related to Rudder - Architecture #10899: Allow to update system variables in technique without changing webapp codeNewFrançois ARMANDActions

Updated by François ARMAND over 8 years ago Actions #1

  • Related to Architecture #10899: Allow to update system variables in technique without changing webapp code added

Updated by François ARMAND over 8 years ago Actions #2

  • Description updated (diff)

Updated by Vincent MEMBRÉ over 8 years ago Actions #3

  • Target version changed from 3.1.21 to 3.1.22

Updated by Benoît PECCATTE over 8 years ago Actions #4

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 36

Updated by Benoît PECCATTE over 8 years ago Actions #5

  • Translation missing: en.field_tag_list set to Sponsored
  • Priority changed from 36 to 61

Updated by Benoît PECCATTE over 8 years ago Actions #6

  • Assignee set to Benoît PECCATTE

We can use a global parameter to set this value.
rudder agent can then use the variable, affect a default value and generate the logrotate template.

Updated by Benoît PECCATTE over 8 years ago Actions #7

  • Priority changed from 61 to 77

Updated by Vincent MEMBRÉ over 8 years ago Actions #8

  • Target version changed from 3.1.22 to 3.1.23
  • Priority changed from 77 to 76

Updated by Vincent MEMBRÉ over 8 years ago Actions #9

  • Target version changed from 3.1.23 to 3.1.24
  • Priority changed from 76 to 75

Updated by Vincent MEMBRÉ over 8 years ago Actions #10

  • Target version changed from 3.1.24 to 3.1.25
  • Priority changed from 75 to 73

Updated by Benoît PECCATTE over 8 years ago Actions #11

  • Priority changed from 73 to 72

Updated by Benoît PECCATTE over 8 years ago Actions #12

  • Status changed from New to In progress

Updated by Benoît PECCATTE over 8 years ago Actions #13

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1216

Updated by Alexis Mousset about 8 years ago Actions #14

  • Assignee changed from Alexis Mousset to Benoît PECCATTE
  • Priority changed from 72 to 78

Updated by Benoît PECCATTE about 8 years ago Actions #15

  • Assignee changed from Benoît PECCATTE to Alexis Mousset

Updated by Benoît PECCATTE about 8 years ago Actions #16

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ about 8 years ago Actions #17

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.25, 4.1.9 and 4.2.3 which were released today.

Updated by Nicolas CHARLES about 8 years ago Actions #18

  • Description updated (diff)
  • Priority changed from 78 to 76

Updated by Alexis Mousset over 3 years ago Actions #19

  • Priority changed from 76 to 0
Actions

Also available in: PDF Atom