Project

General

Profile

feature request #7820

Add cron job for deleting cdmserver log files after a specified time period

Added by Patrick Plitzner over 1 year ago. Updated 18 days ago.

Status:
Rejected
Priority:
New
Category:
cdmserver
Target version:
-
Start date:
10/15/2018
Due date:
10/15/2018
% Done:

0%

Severity:
normal

Description

By fixing #7085 the log files are now generated on a daily base. A cron job should delete the old log files, e.g. after 7 days.

The implementation of the cron job should also be proposed to the user in the cdmserver documentation


Related issues

Related to Edit - bug #7085: cdmserver logfiles getting too big, use RollingFileAppender Closed 11/23/2017
Follows Edit - feature request #7821: Use log4j2 for cdmserver logging to avoid having a separate cron job for deleting log files Duplicate 10/12/2018

History

#1 Updated by Patrick Plitzner over 1 year ago

  • Related to bug #7085: cdmserver logfiles getting too big, use RollingFileAppender added

#2 Updated by Patrick Plitzner over 1 year ago

  • Related to feature request #7821: Use log4j2 for cdmserver logging to avoid having a separate cron job for deleting log files added

#3 Updated by Patrick Plitzner over 1 year ago

  • Related to deleted (feature request #7821: Use log4j2 for cdmserver logging to avoid having a separate cron job for deleting log files)

#4 Updated by Patrick Plitzner over 1 year ago

  • Due date set to 10/15/2018
  • Start date changed from 10/12/2018 to 10/15/2018
  • Follows feature request #7821: Use log4j2 for cdmserver logging to avoid having a separate cron job for deleting log files added

#5 Updated by Andreas Kohlbecker over 1 year ago

  • Target version changed from Release 5.4 to Release 5.5

the creation of rolling logs is still very much unreliabale so that working on this issue makes not much sense. Maybe it is better after the release of version 5.5

once the logging works the cron job should execute something like

find /var/log/cdmserver -mtime +7 -name 'cdm-server.log*'

#6 Updated by Andreas Kohlbecker over 1 year ago

  • Target version changed from Release 5.5 to Release 5.6

#7 Updated by Andreas Kohlbecker over 1 year ago

  • Target version changed from Release 5.6 to Unassigned CDM tickets

#8 Updated by Andreas Kohlbecker 18 days ago

  • Status changed from New to Rejected
  • Target version deleted (Unassigned CDM tickets)

no longer needed as we are using the RollingFileAppender of lockback which deletes logs older than 30 days or if the total log size is > 3 GB

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)