Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-7540: Cleaning up old session data from target AuditStore database

Auditing and Monitoring Service ,  

13 September,18 at 07:47 PM

Is it possible to clean up old sessions from an AuditStore database to free space?

Please find attached to this article a .sql script: 'PurgeSessionsSQLJob - V2.sql' 
This script may be leveraged as a one-time use, or recurring job to clean up old session data from a target AuditStore.

The script should be run against the target AuditStore database as a DBA. Default behavior will remove sessions older than 365 days. This value can be modified on line #9 of the script.

Please also refer to KB-3394: Is it possible to purge audit sessions older than 'x' number of days for alternate/standalone mechanism for leveraging this tool.