Project

General

Profile

feature request #7820

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

Added by Patrick Plitzner 7 months ago. Updated 3 months ago.

Status:
New
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 DailyRollingFileAppender In Progress 11/23/2017
Follows Edit - feature request #7821: Use log4j2 for cdmserver logging to avoid having a separate cron job for deleting log files New 10/12/2018

History

#1 Updated by Patrick Plitzner 7 months ago

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

#2 Updated by Patrick Plitzner 7 months 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 7 months 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 7 months 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 7 months 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 4 months ago

  • Target version changed from Release 5.5 to Release 5.6

#7 Updated by Andreas Kohlbecker 3 months ago

  • Target version changed from Release 5.6 to Unassigned CDM tickets

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)