Welcome! Log In Create A New Profile

Advanced

Full logging

Hans Liss
September 09, 2020 05:12AM
Hi!

I need a HTTP proxy that can handle requests for a single upstream
server, but also log request headers, raw request body, response headers
and raw response body for each request. Preferably this should be logged
to a separate daily logfile (with date-stamped filename), with
timestamps, but the exact format isn't important.

I understand that nginx doesn't provide full logging like this out of
the box, so I was wondering if it would be difficult to add. Is there a
single well-defined point in the code where an upstream request is ready
to be sent, and a point where the response has been received? I might be
able to take it from there, but it would save a lot of time if I knew
where to do this.

I'm well aware of the performance penalties involved, but for this
particular case, it doesn't matter.

Best regards,

Hans









När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Full logging

Hans Liss September 09, 2020 05:12AM

RE: Full logging

Reinis Rozitis September 09, 2020 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready