Missing audits from logs

book

Article ID: 186892

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

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/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-gateway/9-4/services-and-policies/working-with-policies/policy-fragments/global-policy-fragments.html#concept.dita_c0db66ba7b83958f6d0fa1d845b29c95f75ad705_LimitationstoGlobalPolicies


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 .