I want to make some statistics of the NGINX traffic (server side) with the number of requests, user-agent, referrer, etc...
I want to make this as simple as possible, so I would like to avoid developing a new module.
There is an application outside nginx that will calculate all statistics from request, but the challenge is how to feed this application.
With an upstream, I will redirect the request and the server will not respond in the same way.
There is also an undocumented "post_action" function (https://thecocktail.engineering/replicando-tr%C3%A1fico-con-nginx-d180da214707). It could work well by "duplicating" the request, but I need an official/supported/stable solution.
Any idea?
I want to make this as simple as possible, so I would like to avoid developing a new module.
There is an application outside nginx that will calculate all statistics from request, but the challenge is how to feed this application.
With an upstream, I will redirect the request and the server will not respond in the same way.
There is also an undocumented "post_action" function (https://thecocktail.engineering/replicando-tr%C3%A1fico-con-nginx-d180da214707). It could work well by "duplicating" the request, but I need an official/supported/stable solution.
Any idea?