Skip to main content

Scheduling Periodic Database Cleanup

The IAST system frequently removes old database entries to avoid an accumulation of old data according to a default schedule. You are able to adjust this default schedule and adapt it to your specific needs by editing the application.global.properties file on the IAST server as follows:

  1. Navigate to application.global.properties. This file is located in the CxIAST Manager folder under ..\CxIAST\Manager\webapps\ROOT\META-INF\ .

  2. Copy the keys listed in the code sample below to that file, which define the default settings already in place. These settings are illustrated and explained in the table below.

  3. Modify the settings according to your needs and then save the file.

  4. Restart the IAST services for the changes to take effect.

cx.iast.manager.results.cleanOldMultipleInputs.cronExpression=0 0 4 1/1 * ?
cx.iast.manager.results.cleanOldMultipleInputs.numOfLastScans=3
cx.iast.manager.results.cleanOldMultipleInputs.numOfLastDays=10

cx.iast.manager.projects.cleanOldScans.scanLimitDefaultValue=1000
cx.iast.manager.projects.cleanOldScans.minAggregateScans=3
cx.iast.manager.projects.cleanOldScans.cronExpression=0 0 0 1/1 * ?

cx.iast.manager.cleanOldEvents.cronExpression=0 0 5 1/1 * ?
cx.iast.manager.cleanOldEvents.eventsLimit=100000

cx.iast.manager.cleanOldAgents.cronExpression=0 0 6 1/1 * ?
cx.iast.manager.cleanOldAgents.daysLimit=30

cx.iast.manager.cleanOldAgentInitIssues.cronExpression=0 0 7 1/1 * ?
cx.iast.manager.cleanOldAgentInitIssues.daysLimit=30

Note

All the displayed settings apply per project and not to the entire CxIAST system.

String

Description

cx.iast.manager.results.cleanOldMultipleInputs.cronExpression=0 0 41/1 * ?

Multiple Input results are deleted once a day at 4:00h.

Multiple input results are results with the same similarity ID that only differ by parameter values.

cx.iast.manager.results.cleanOldMultipleInputs.numOfLastScans=3

The 3 last multiple input scan results are preserved.

cx.iast.manager.results.cleanOldMultipleInputs.numOfLastDays=10

Multiple input scan results are kept for up to 10 days.

cx.iast.manager.projects.cleanOldScans.scanLimitDefaultValue=1000

The last 1000 scans are preserved. If the number exceeds 1000, the respective number of the oldest scans is deleted.

cx.iast.manager.projects.cleanOldScans.minAggregateScans=3

Old scans are deleted only, if there are at least 3 aggregated scans.

cx.iast.manager.projects.cleanOldScans.cronExpression=0 0 01/1 * ?

Old scans are deleted once a day at 0:00h.

cx.iast.manager.cleanOldEvents.cronExpression=0 0 51/1 * ?

Old activity logs are deleted once a day at 5:00h.

cx.iast.manager.cleanOldEvents.eventsLimit=100000

The last 100000 activity logs are preserved. If the number exceeds 100000, the respective number of the oldest events is deleted.

cx.iast.manager.cleanOldAgents.cronExpression=0 0 61/1 * ?

Old agent logs are deleted once a day at 6:00h.

cx.iast.manager.cleanOldAgents.daysLimit=30

Old agent logs are kept for up to 30 days.

cx.iast.manager.cleanOldAgentInitIssues.cronExpression=0 0 71/1 * ?

Old diagnostic logs are deleted once a day at 7:00h.

cx.iast.manager.cleanOldAgentInitIssues.daysLimit=30

Old diagnostic logs are kept for up to 30 days.