The CA API Gateway stores audit records in a local MySQL database container. These audit records contain information on administrative actions likes Policy Manager log-ins, system actions such as starting and stopping the Gateway, and message processing actions such as completed or failed messages. They can be a source of diagnostic data for troubleshooting or for providing an audit trail / for change and configuration / management systems. These audits may need to be maintained on a periodic basis based upon the size and quantity of the audit records that are generated.
The steps in this article will be of use if the following audit record or log message are recorded by the Gateway. This message indicates that a certain percentage of the Gateway database is consumed by audit records. If this message is present then this process should be executed:
WARNING 62 com.l7tech.server.audit.AuditArchiver: 2207: Audit Archive current database size 51% has reached and/or exceeded the soft limit of 50%.
If the Gateway is not accessible via the Policy Manager then an alternative article should be reviewed to forcefully remove audit records from the Gateway database. That article can be found here: Audit Record Maintenance Without Downtime in Clustered Environment.
All supported versions of the API Gateway
Different variables will need to be taken into account when determining what constraints to use for selecting audit records to remove.They include the:
Removing audit records is a destructive process and backing up existing audit records is recommended if they need to be maintained for regulatory compliance. The following procedure can be used to back up the existing audit records:
All audit records older than seven days will be removed. This threshold can be configured via the audit.purgeMinimumAge cluster-wide property