Missing audits from logs
search cancel

Missing audits from logs

book

Article ID: 186892

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When using a global policy - message received and message completed. where  I added audit detail message with time.
exported those policies with gmu and imported on another server, and audit log entry for  "message received"  is missing.

Time received: ${gateway.time.iso8601}

or

Time completed: ${gateway.time.iso8601}

I only see the Time completed message in the audit log , which is linked to the global police message completed.

Environment

Release : 9.x
Component : API GTW 

Resolution

This is working as expected when using a Global Policy .

If you look in the doc for global policy it says the following :


https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/11-0/services-and-policies/working-with-policies/policy-fragments/global-policy-fragments.html 

See Limitations to Global Policies


message-received: A policy of this type will run when a message is received, but before the service is resolved.
This policy is run-ed before the service is resolved so the service /policy/folder name is unknown and filtering on the service name will not work as it is not linked to the service name yet.
If you remove the audit filter which is filtering on the service name it works as expected .