Skip to content

add proxy logs #139

Open
Open
@sify21

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions