wso2 / carbon-apimgt

Apache License 2.0
166 stars 626 forks source link

Fix error when pushing Webhook API analytics to apim_metrics.log with ELK enabled #12352

Closed thisaltennakoon closed 6 months ago

thisaltennakoon commented 6 months ago

Fix https://github.com/wso2/api-manager/issues/2587

In the current implementation, an error occurs when APIM attempts to push Webhook API analytics to the apim_metrics.log file when ELK analytics is enabled. This issue stems from the lack of handling the scenario where the userName field is null and, this PR fixes this issue by handling the null.