You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Introduction

The Log Cleaner Plugin that adds in a process tool or scheduler to clear the API logs, scheduler logs and Audit trail logs from Joget database with duration from 8 days to 90 days old. It used to delete the old log data from these tables which helps to maintain the database size.This article will explore the functionality and capability of this plugin.

Plugin Information

This plugin is available here: Joget Marketplace.

This plugin is compatible with Joget DX 8 and onwards.

Steps to install, run, and test the plugin:

  1. In Joget Settings > Manage Plugins > Upload Plugin > select the jar File > Add.
  2. Once the plugin is updated in the Joget. Create the process and tool in that process and select the plugin name in it.

Log Cleaner Plugin Properties

NameDescription
Log TypeSelect the logs from the Joget database that will be deleted.
Duration

Select the number of days before a log is deleted. The following are the options available:

  • 8 days
  • 15 days
  • 30 days
  • 60 days
  • 90 days

Using the Log Cleaner Plugin with the Scheduler Plugin

The Log Cleaner Plugin can also be used with the Scheduler Plugin to trigger the log cleaning process when a specific event occurs, for example, when system storage reaches 200GB. When configuring the Scheduler Plugin properties, select the app containing the Log Cleaner Plugin for the App field and the Log Cleaner Plugin for the Plugin field.


NameDescription
Job NameSpecify a name for the scheduled job.
Cron Expression

A cron expression is a string comprising five or six fields separated by white space that represents a set of times, normally as a schedule to execute some routine.

App

Select the app containing the Log Cleaner Plugin

Plugin

Select the Log Cleaner Plugin.

Expected Outcome

The following image displays the logs that will be cleared after the expected duration elapses.

Download Sample App

APP_Log_Cleaner_Plugin.jwa

Credits


  • No labels