...
If you're using the JdbcAuditTrailManager, you might want to automatically clean the audit log. Here's some example code (for your auditTrailContext.xml) that cleans out entries older than 180 days:. This has been tested in CAS 3.4.10.
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="auditManager" class="com.github.inspektr.audit.support.JdbcAuditTrailManager"> <constructor-arg index="0" ref="inspektrTransactionTemplate" /> <property name="dataSource" ref="dataSource" /> <property name="cleanupCriteria" ref="auditCleanupCriteria" /> </bean> <bean id="auditCleanupCriteria" class="com.github.inspektr.audit.support.MaxAgeWhereClauseMatchCriteria"> <constructor-arg index="0" value="180" /> </bean> |