-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Access log and multiple headers of the same name #3618
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #855 (Support for structured access log), #1652 (Trailer headers), #1504 (Log the names of tests that fail or are skipped?), #2641 (Variety of access logging issues), and #2085 (Document about Access log cause confusion). |
Hey You can try https://aiohttp.readthedocs.io/en/stable/logging.html with custom |
Are you really sure haproxy doesn't override the |
@hellysmile What do you mean? I'm already supplying custom log format but @samuelcolvin From haproxy configuration manual:
It might be possible to overwrite headers with haproxy (it can do lot of things) but that's a bit hacky solution. |
@hellysmile, means write your own Example here but that's much more complicated than yours needs to be. |
@samuelcolvin I see. Seems easy enough. Thanks. |
Long story short
I have aiohttp behind haproxy and I'd like to see clients IP in aiohttp access log. Haproxy can forward client IP in (X-Client) http header and I can log that. However, there is edge case where request already has X-Client header. Aiohttp logs 1st occurrence of X-Client and I'd like to log last occurrence.
The text was updated successfully, but these errors were encountered: