Project

General

Profile

User story #6719

Suppress webapp logs after some time

Added by Nicolas CHARLES over 2 years ago. Updated 11 months ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Maintenance
Target version:
Target version (plugin):
Suggestion strength:
User visibility:
Effort required:
Pull Request:

Description

The log of the webapp, in /var/log/rudder/webapp, are never purged, resulting in a growing disk usage, for no reason.

We should suppress them after 30 days, like the core logs - so modify the logback.xml file accordingly


Related issues

Related to Rudder - Bug #6381: File /var/log/rudder/{compliance/non-compliant-reports.log, core/rudder-webapp.log} are not correctly rotated Released 2015-03-11
Related to Rudder - User story #6384: Clean log rotation & compression letting Java alone New 2015-03-11

History

#1 Updated by Nicolas CHARLES over 2 years ago

  • Assignee changed from François ARMAND to Nicolas CHARLES

i'm taking over this ticket

#2 Updated by Nicolas CHARLES over 2 years ago

  • Target version changed from 2.10.15 to 2.11.12

rolling history appeared on 2.11

#3 Updated by Nicolas CHARLES over 2 years ago

  • Assignee changed from Nicolas CHARLES to François ARMAND

ok, i'm un-tacking over this ticket, it's not as trivial as I thought, and don't have to possibitily to work on it right now

#4 Updated by François ARMAND over 2 years ago

  • Related to Bug #6381: File /var/log/rudder/{compliance/non-compliant-reports.log, core/rudder-webapp.log} are not correctly rotated added

#5 Updated by François ARMAND over 2 years ago

  • Related to User story #6384: Clean log rotation & compression letting Java alone added

#6 Updated by Nicolas CHARLES over 2 years ago

ok, the org.eclipse.jetty.util.RolloverFileOutputStream in /opt/rudder/jetty7/etc/jetty-loging.xml defines 90 days of retention

#7 Updated by François ARMAND over 2 years ago

This part is managed by the logging from Jetty.
So it is configured in /opt/rudder/jetty7/etc/jetty-logging.xml file, for attribute: <Arg type="int">90</Arg> (very explicit, yes :)

Our current configuration states that log files are kept 90 days, and it is right that it may be too long.

Nicolas, as a workaround, you can already change the value in the config file. And we can change it in following release to a smaller value (30 days is good).

#8 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.12 to 2.11.13

#9 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.13 to 2.11.14

#10 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.14 to 2.11.15

#11 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.15 to 2.11.16

#12 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.16 to 2.11.17

#13 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.17 to 2.11.18

#14 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.18 to 2.11.19

#15 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 2.11.19 to 2.11.20

#16 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 2.11.20 to 2.11.21

#17 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 2.11.21 to 2.11.22

#18 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 2.11.22 to 2.11.23

#19 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 2.11.23 to 2.11.24

#20 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 2.11.24 to 308

#21 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 308 to 3.1.14

#22 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.14 to 3.1.15

#23 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.15 to 3.1.16

#24 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.16 to 3.1.17

#25 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.17 to 3.1.18

#26 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 3.1.18 to 3.1.19

#27 Updated by Benoît PECCATTE 11 months ago

  • Tracker changed from Bug to User story
  • Subject changed from webapp logs are never suppressed to Suppress webapp logs after some time
  • Status changed from New to Rejected

this is done since 2.11

Also available in: Atom PDF