Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User IP is not available in apim_metrics.log in failure scenarios #2498

Closed
vinok88 opened this issue Feb 20, 2024 · 1 comment
Closed

User IP is not available in apim_metrics.log in failure scenarios #2498

vinok88 opened this issue Feb 20, 2024 · 1 comment

Comments

@vinok88
Copy link

vinok88 commented Feb 20, 2024

Description

The API manager is configured to use ELK analytics. When a request fails due to a reason such as authentication failure, we do not log the user IP (X-forwarded header). But in success scenarios, this header is printed.
Include the user IP in failure scenarios as well.

Steps to Reproduce

Enable ELK analytics in deployment.toml
Enable additional logs as per the documentation.
Check the apim_metrics.log for a success and failed scenario

Affected Component

Analytics

Version

4.1

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@hisanhunais
Copy link

Fixed via wso2/carbon-apimgt#12296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants