AuditLog retention period
Add a new setting to application.properties
called auditlog.retentionPeriod
. The value is the duration that should be human readable: 6M 2d
or something similar.
The default auditlog.retentionPeriod
is 1year 1month
. Log the retention period as number of days on startup (in afterPropertiesSet
). If the provided value is not parseable, throw an exception and GGCE must not start.
Add a scheduled job that runs once every 11 hours and removes AuditLogs
that were created before today - retentionPeriod
.