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
The tenant logging feature for admin portal operations such as deploying throttle policies [1] not working.
The log files shoud be created in the <API-M_HOME>/repository/logs directory with the name wso2-tenant-.log file. but it is not created. and tenant logs related to the admin portal operation also available in the carbon logs not in the tenant logs.
The initially proposed solution for the throttle policy deployment flow was to start tenant flow when deploying throttle policies. But we further analyzed the proposed fix regarding a tenant's use case. So if we implement this, when deploying throttle policy of a tenant, it will get deployed in tenant related executionplans folder. But that behavior is incorrect. Throttle policies are expected to be deployed in the central super-tenant" related "execution plans" directory (i.e. <APIM_HOME>/repository/deployment/server/executionplans), irrespective of the tenant. So even for the tenants, the execution plans are expected to be deployed in above same directory. That is the design of the throttling functionality of the product.
Due to this, execution plans deployment (throttle policy deployment) has a different behavior compared to other use cases. This is considered as a general flow irrespective of the tenant. So it is fine to print the related log files (implying policy deployment in the file system directory), in super tenant related log file even for tenants. All execution plans are deployed in super-tenant related folder.
So we are considering this behavior as not a bug. This is not needed to be fixed.
Description
Hi Team,
The tenant logging feature for admin portal operations such as deploying throttle policies [1] not working.
The log files shoud be created in the <API-M_HOME>/repository/logs directory with the name wso2-tenant-.log file. but it is not created. and tenant logs related to the admin portal operation also available in the carbon logs not in the tenant logs.
[1] https://apim.docs.wso2.com/en/4.1.0/administer/logging-and-monitoring/logging/configuring-logging/#enabling-logs-for-a-tenant
Thanks,
Janaka.
Steps to Reproduce
Add the following configurations in the log4j2.properties file.
Affected Component
APIM
Version
4.1.0
Related Issues
#3016
Suggested Labels
wso2am-4.1.0
The text was updated successfully, but these errors were encountered: