PTA - [P090] Verifying purge of old audits... [ FAIL ] ( PTA holds audits older than the retention period )

PTA - [P090] Verifying purge of old audits... [ FAIL ] ( PTA holds audits older than the retention period )

99
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:00 PM


Symptom


When running RUN_DIAGNOSTICS (specifically RUN_DIAGNOSTICS P090) from the PTA server the following error appears:-

 

1 ./tasks/PTA/task095. sh - [P090] Verifying purge of old audits... [ FAIL ] ( PTA holds audits older than the retention period )



Environment


11.7;12.0;12.1;12.2;11.9;11.8 Privileged Access Manager (PAM, self-hosted) PTA

PTA



Cause


This error occurs when the number of mongodb collections starting with the string 'audits_20' exceeds the number value of the audit_retention_period_in_days setting in LOCALPARM. If the audit_retention_period_in_days setting is not present then the default value of 90 is used.



Resolution


Audit collections that fall outside the retention period are removed as part of a 3am background Scheduler service that runs on PTA. If the PTA was down at that time , or the task did not run then the RUN_DIAGNOSTICS error will appear. The collections will be removed when the task next runs.

 

If the error appears consistently, then check the number of collections using the following command from the PTA server:-

 

/opt/diag-tool/ptaInternalDiagTool. sh mongoQuery -showCollections | grep "audits_20"

 

This command will output the list of audit collections

 

If audits older than 90 days appear, increase the log level of the backgroundscheduler listener to debug and check the diamond.log after the next scheduled task run time for errors.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BkmCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail