Service Temporarily Unavailable (503) not showing up in ssg log. Override audit detail message log level
search cancel

Service Temporarily Unavailable (503) not showing up in ssg log. Override audit detail message log level

book

Article ID: 404688

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We have set rate limit for few services at policy level on the Gateway, and when the limit is reached, clients receieve the following error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Policy Falsified</faultstring>
<detail> 
<l7:policyResult status="Service Temporarily Unavailable" xmlns:l7="http://www.layer7tech.com/ws/policy/fault"/>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

However, ssg logs do not show this error.  In the debug mode,  we can see message: 

com.l7tech.server.message: Message was not processed: Service Temporarily Unavailable (503). 

How can we see the error in the ssg log? 

 

Environment

Gateway 11.x

Cause

The audit message:  

Message was not processed: Service Temporarily Unavailable (503)

Is in INFO log level.  So when Cluster wide property audit.messageThreshold=WARNING,  then the message

Service Temporarily Unavailable (503) 

is not logged in the ssg log. 

 
 
 
 

 

Resolution

While in the production environment, user often set threshold at WARNING level to avoid too many log information written to the ssg log. In general, user can set   audit.setDetailLevel.<level> value to override the audit code log level,  so the related audit code events can be logged by the log file. 

In the  Cluster wid property: audit.setDetailLevel.<level>,  <level> is one of:
SEVERE
WARNING
INFO
CONFIG
FINE
FINER
FINEST
And value can set by entering a list of audit codes, separated by spaces in the appropriate <level> cluster property. The audit code is overridden to that level for auditing purposes.
 
Example:  Set Cluster wide property 
audit.setDetailLevel.WARNING to  
503 
will allow the message:
Service Temporarily Unavailable (503)
logged in the ssg log , even the Cluster wide property audit.messageThreshold=WARNING. 

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/11-1/reference/gateway-cluster-properties/audit-cluster-properties.html