Project

General

Profile

Actions

Bug #10912

closed

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

Added by François ARMAND about 4 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
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
76
Tags:

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

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

Updated by François ARMAND about 4 years ago

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

Updated by François ARMAND about 4 years ago

  • Description updated (diff)
Actions #3

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #4

Updated by Benoît PECCATTE almost 4 years ago

  • 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
Actions #5

Updated by Benoît PECCATTE almost 4 years ago

  • Tags set to Sponsored
  • Priority changed from 36 to 61
Actions #6

Updated by Benoît PECCATTE almost 4 years ago

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

Actions #7

Updated by Benoît PECCATTE almost 4 years ago

  • Priority changed from 61 to 77
Actions #8

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 3.1.22 to 3.1.23
  • Priority changed from 77 to 76
Actions #9

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 3.1.23 to 3.1.24
  • Priority changed from 76 to 75
Actions #10

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 3.1.24 to 3.1.25
  • Priority changed from 75 to 73
Actions #11

Updated by Benoît PECCATTE over 3 years ago

  • Priority changed from 73 to 72
Actions #12

Updated by Benoît PECCATTE over 3 years ago

  • Status changed from New to In progress
Actions #13

Updated by Benoît PECCATTE over 3 years ago

  • 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
Actions #14

Updated by Alexis MOUSSET over 3 years ago

  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Priority changed from 72 to 78
Actions #15

Updated by Benoît PECCATTE over 3 years ago

  • Assignee changed from Benoît PECCATTE to Alexis MOUSSET
Actions #16

Updated by Benoît PECCATTE over 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #17

Updated by Vincent MEMBRÉ over 3 years ago

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

Actions #18

Updated by Nicolas CHARLES over 3 years ago

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

Also available in: Atom PDF