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  >
article

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

29 September,16 at 04:17 PM

Applies to: All versions of Centrify DirectAudit >2.x on all supported platforms

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

Answer:
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. 
Attachments:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.