ssg logs spammed with message "com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: lookup from cache and CWP failed"
search cancel

ssg logs spammed with message "com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: lookup from cache and CWP failed"

book

Article ID: 267916

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The ssg logs on all four gateways are getting spammed with this kind of warning. How can I identify where they come from and how to make them stop?

2023-06-05T15:14:18.488-0400 WARNING 409 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: lookup from cache and CWP failed: lookup.entityMappingId=bc64b63f-4ef4-4055-bd2f-eb3bf30ddd16_5318da82-ff6c-409c-89e4-5bf8bef3d173, lookup.storeName=, gateway.cluster.rq.cacheid=497bdd62defc4f96a35ed2edcebd43ce

Environment

API Gateway 10.1

API Portal: 5.2

Resolution

1. Run the following query against your ssg database: select name from policy where xml like '%lookup.entityMappingId%';

There may be one or more policies that match this query like this:

mysql> select name from policy where xml like '%lookup.entityMappingId%';
+-----------------------------------------------------------------+
| name                                                            |
+-----------------------------------------------------------------+
| ::l7.apim.system::Rate & Quota Config Lookup::2.0               |
| ::l7.apim.system::Rate & Quota Mapping Lookup::2.0              |
| ::l7.apim.system::Rate & Quota Enforcement Policy Template::2.0 |
+-----------------------------------------------------------------+
3 rows in set (0.10 sec)

2. In each policy, there is an Add Audit Detail that is responsible for printing these messages. If you don't want these messages printed in your ssg log, you will need to change the log level on the audit to FINE. This will stop the messages.

Please note that this will be a global change and these messages will only be seen if your audit.detailThreshold CWP is changed to FINE.