Bug #10912
closed
Duration of logrotate for /var/log/rudder/ is too long making /var/log too big
Added by François ARMAND over 7 years ago.
Updated over 2 years ago.
Category:
System integration
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
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 open — 0 closed)
- Related to Architecture #10899: Allow to update system variables in technique without changing webapp code added
- Description updated (diff)
- Target version changed from 3.1.21 to 3.1.22
- 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
- Translation missing: en.field_tag_list set to Sponsored
- Priority changed from 36 to 61
- 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.
- Priority changed from 61 to 77
- Target version changed from 3.1.22 to 3.1.23
- Priority changed from 77 to 76
- Target version changed from 3.1.23 to 3.1.24
- Priority changed from 76 to 75
- Target version changed from 3.1.24 to 3.1.25
- Priority changed from 75 to 73
- Priority changed from 73 to 72
- Status changed from New to In progress
- 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
- Assignee changed from Alexis Mousset to Benoît PECCATTE
- Priority changed from 72 to 78
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Status changed from Pending technical review to Pending release
- 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.
- Description updated (diff)
- Priority changed from 78 to 76
- Priority changed from 76 to 0
Also available in: Atom
PDF