You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to enhance the API log and follow the document on wso2 website [1] , but the log doesn't show api resource (show only context and version) as mentioned on wso2 website.
Please kindly check the configuration we follow your document.
Description
Hi Team,
We want to enhance the API log and follow the document on wso2 website [1] , but the log doesn't show api resource (show only context and version) as mentioned on wso2 website.
Please kindly check the configuration we follow your document.
log4j2.properties
API Log
https://apim.docs.wso2.com/en/4.1.0/observe/api-manager/monitoring-api-logs/#configure-api-logs-using-devops-rest-api
Regards,
Chethan
Steps to Reproduce
We have received the above query from the customer regarding the API level logs and recreated the issue by following the below steps:
curl -X PUT 'https://localhost:9443/api/am/devops/v0/tenant-logs/carbon.super/apis/621e6cc2-8203-427b-a3de-77c26b954d67' -H 'Authorization: Basic YWRtaW46YWRtaW4=' -H 'Content-Type: application/json' -d '{"logLevel": "BASIC"}' -k
[2024-08-29 14:30:07,198] INFO {API_LOG} PizzaShackAPI | / | 1.0.0 | /pizzashack/1.0.0 | carbon.super - {"sourceIP":"127.0.0.1","verb":"OPTIONS","correlationId":"eff9659c-8ab7-4bdf-900e-daff1303dff1","apiTo":"/pizzashack/1.0.0","flow":"REQUEST_IN"}
appender.API_LOGFILE.layout.pattern = [%d] %5p {%c} %X{apiName} | %X{resourceName} | %X{apiVersion} | %X{apiContext} | %X{tenantDomain} - %m%ex%n
Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: