This command cleans the audit database by removing old data.
Enter the command using the syntax shown below. Available options are shown in brackets.
zosadmin auditclean --dayskept= [--grid=] [--table=]
When you add an option, use the syntax in the command line as shown above (where options are shown in their long form). Short and long options for this command are listed below.
Specify the number of days of history kept in the database (0 removes all).
Specify a different grid (by ID). Use ‘*’ to match all. Include the single quotes only in a shell environment.
Specify the table (workflow, actions). Default is workflow.
Turn on verbose output during this operation.
Turn on debug output during this operation.
Display a help message for this operation.
To clean up all records older than 7 days for the logged in grid, use the following command:
zosadmin auditclean --dayskept=7
To clean up all records older than 7 days from all servers stored in the audit database, use the following command:
zosadmin auditclean --dayskept=7 --gridId=*