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

add proxy logs #139

Open
sify21 opened this issue Sep 10, 2024 · 0 comments
Open

add proxy logs #139

sify21 opened this issue Sep 10, 2024 · 0 comments

Comments

@sify21
Copy link

sify21 commented Sep 10, 2024

I see no logs when the proxy is successful, please add more logs, I depend on the logs (and elk) for analysis purpose.

See reverse_proxy logs for example:

{"level":"debug","ts":1725981949.9330766,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"127.0.0.1:8001","total_upstreams":2}
{"level":"debug","ts":1725981949.93399,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"127.0.0.1:8001","duration":0.000840843,"request":{"remote_ip":"127.0.0.1","remote_port":"54300","client_ip":"127.0.0.1","proto":"HTTP/1.1","method":"GET","host":"localhost:8000","uri":"/","headers":{"User-Agent":["curl/7.81.0"],"X-Forwarded-For":["127.0.0.1"],"X-Forwarded-Proto":["http"],"X-Forwarded-Host":["localhost:8000"],"Accept":["*/*"]}},"headers":{"Date":["Tue, 10 Sep 2024 15:25:49 GMT"],"Content-Length":["14"],"Content-Type":["text/plain; charset=utf-8"]},"status":200}

At least a log about the request object is needed.

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

2 participants