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
Even though the application owner has been changed from the /admin portal, still observing the previous application owner’s username as applicationOwner and userName in ELK metrics and as the value of $ctx:api.ut.userName in the custom sequence.
12:26:24,006 [-] [PassThroughMessageProcessor-50] INFO ELKCounterMetric apimMetrics: apim:response, properties :{"apiName":"PizzaShackAPI","proxyResponseCode":200,"destination":"https://localhost:9443/am/sample/pizzashack/v1/api/",
"apiCreatorTenantDomain":"carbon.super","platform":"Other","apiMethod":"GET","apiVersion":"1.0.0","gatewayType":"SYNAPSE","apiCreator":"admin","responseCacheHit":false,"backendLatency":72,"correlationId":"2a38e9d3-5e9f-4007-ba86-f8fa460beb7f","requestMediationLatency":28,"keyType":"PRODUCTION","apiId":"1a74459e-ef9f-4c33-88d5-6351ab106078","applicationName":"TestApplication","targetResponseCode":200,"requestTimestamp":"2024-02-16T06:56:23.897Z","applicationOwner":"Test1","userAgent":"curl","userName":"Test2@carbon.super","apiResourceTemplate":"/menu","responseLatency":102,"regionId":"default","responseMediationLatency":2,"userIp":"127.0.0.1","apiContext":"/pizzashack/1.0.0","applicationId":"3e3198b8-aec1-40e2-922f-0efa6b6d49a9","apiType":"HTTP","properties":{}}
Property mediator value :
INFO - LogMediator {api:PizzaShackAPI:v1.0.0} User = Test2@carbon.super
Observations
Eventhough we have changed the application owner, still we can observe the previous owners username in above mentioned ELK metrics and property mediator value.
Note : New application owners username can be observed as expected once the APIM server is restarted. Hence waited for 15 minutes to check whether any caching related issue, but observed the same issue even after 15 minutes. By the way, server restart provides the expected results.
Affected Component
APIM
Version
4.0.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:
Description
Hi Team,
Even though the application owner has been changed from the /admin portal, still observing the previous application owner’s username as applicationOwner and userName in ELK metrics and as the value of $ctx:api.ut.userName in the custom sequence.
Steps to Reproduce
deployment.toml
log4j2.properties
Client Credentials grant type
ELK metrics :
09:36:58,977 [-] [PassThroughMessageProcessor-22] INFO ELKCounterMetric apimMetrics: apim:response, properties :{"apiName":"PizzaShackAPI","proxyResponseCode":200,"destination":"https://localhost:9443/am/sample/pizzashack/v1/api/","apiCreatorTenantDomain":"carbon.super","platform":"Mac OS X","apiMethod":"GET","apiVersion":"1.0.0","gatewayType":"SYNAPSE","apiCreator":"admin","responseCacheHit":false,"backendLatency":341,"correlationId":"036306be-2afc-4b05-b706-64df09c79ca9","requestMediationLatency":5579,"keyType":"PRODUCTION","apiId":"1a74459e-ef9f-4c33-88d5-6351ab106078","applicationName":"TestApplication","targetResponseCode":200,"requestTimestamp":"2024-02-16T04:06:53.035Z","applicationOwner":"Test1","userAgent":"Chrome","userName":"Test1@carbon.super","apiResourceTemplate":"/menu","responseLatency":5927,"regionId":"default","responseMediationLatency":7,"userIp":"127.0.0.1","apiContext":"/pizzashack/1.0.0","applicationId":"3e3198b8-aec1-40e2-922f-0efa6b6d49a9","apiType":"HTTP","properties":{}}
Property mediator value :
INFO - LogMediator {api:PizzaShackAPI:v1.0.0} User = Test1@carbon.super
Password grant type
ELK Metrics :
12:21:53,017 [-] [PassThroughMessageProcessor-46] INFO ELKCounterMetric apimMetrics: apim:response, properties :{"apiName":"PizzaShackAPI","proxyResponseCode":200,"destination":"https://localhost:9443/am/sample/pizzashack/v1/api/", "apiCreatorTenantDomain":"carbon.super","platform":"Other","apiMethod":"GET","apiVersion":"1.0.0","gatewayType":"SYNAPSE","apiCreator":"admin","responseCacheHit":false,"backendLatency":151,"correlationId":"82345f3d-141e-4e3d-8b62-043c3b3e95cb","requestMediationLatency":6233,"keyType":"PRODUCTION","apiId":"1a74459e-ef9f-4c33-88d5-6351ab106078","applicationName":"TestApplication","targetResponseCode":200,"requestTimestamp":"2024-02-16T06:51:44.941Z","applicationOwner":"Test1","userAgent":"curl","userName":"Test1@carbon.super","apiResourceTemplate":"/menu","responseLatency":6977,"regionId":"default","responseMediationLatency":593,"userIp":"127.0.0.1","apiContext":"/pizzashack/1.0.0","applicationId":"3e3198b8-aec1-40e2-922f-0efa6b6d49a9","apiType":"HTTP","properties":{}}
Property mediator value :
INFO - LogMediator {api:PizzaShackAPI:v1.0.0} User = Test1@carbon.super
Client credentials grant type
ELK Metrics :
09:41:43,958 [-] [PassThroughMessageProcessor-25] INFO ELKCounterMetric apimMetrics: apim:response, properties :{"apiName":"PizzaShackAPI","proxyResponseCode":200,"destination":"https://localhost:9443/am/sample/pizzashack/v1/api/","apiCreatorTenantDomain":"carbon.super","platform":"Mac OS X","apiMethod":"GET","apiVersion":"1.0.0","gatewayType":"SYNAPSE","apiCreator":"admin","responseCacheHit":false,"backendLatency":433,"correlationId":"e0ce7138-9260-49b5-9384-ddc8526723c7","requestMediationLatency":5356,"keyType":"PRODUCTION","apiId":"1a74459e-ef9f-4c33-88d5-6351ab106078","applicationName":"TestApplication","targetResponseCode":200,"requestTimestamp":"2024-02-16T04:11:38.153Z","applicationOwner":"Test1","userAgent":"Chrome","userName":"Test1@carbon.super","apiResourceTemplate":"/menu","responseLatency":5792,"regionId":"default","responseMediationLatency":3,"userIp":"127.0.0.1","apiContext":"/pizzashack/1.0.0","applicationId":"3e3198b8-aec1-40e2-922f-0efa6b6d49a9","apiType":"HTTP","properties":{}}
Property mediator value :
INFO - LogMediator {api:PizzaShackAPI:v1.0.0} User = Test1@carbon.super
Password grant type
ELK Metrics :
12:26:24,006 [-] [PassThroughMessageProcessor-50] INFO ELKCounterMetric apimMetrics: apim:response, properties :{"apiName":"PizzaShackAPI","proxyResponseCode":200,"destination":"https://localhost:9443/am/sample/pizzashack/v1/api/",
"apiCreatorTenantDomain":"carbon.super","platform":"Other","apiMethod":"GET","apiVersion":"1.0.0","gatewayType":"SYNAPSE","apiCreator":"admin","responseCacheHit":false,"backendLatency":72,"correlationId":"2a38e9d3-5e9f-4007-ba86-f8fa460beb7f","requestMediationLatency":28,"keyType":"PRODUCTION","apiId":"1a74459e-ef9f-4c33-88d5-6351ab106078","applicationName":"TestApplication","targetResponseCode":200,"requestTimestamp":"2024-02-16T06:56:23.897Z","applicationOwner":"Test1","userAgent":"curl","userName":"Test2@carbon.super","apiResourceTemplate":"/menu","responseLatency":102,"regionId":"default","responseMediationLatency":2,"userIp":"127.0.0.1","apiContext":"/pizzashack/1.0.0","applicationId":"3e3198b8-aec1-40e2-922f-0efa6b6d49a9","apiType":"HTTP","properties":{}}
Property mediator value :
INFO - LogMediator {api:PizzaShackAPI:v1.0.0} User = Test2@carbon.super
Observations
Eventhough we have changed the application owner, still we can observe the previous owners username in above mentioned ELK metrics and property mediator value.
Note : New application owners username can be observed as expected once the APIM server is restarted. Hence waited for 15 minutes to check whether any caching related issue, but observed the same issue even after 15 minutes. By the way, server restart provides the expected results.
Affected Component
APIM
Version
4.0.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: