Welcome! Log In Create A New Profile

Advanced

Duplicate Requests for statistics

Posted by rristow 
Duplicate Requests for statistics
January 06, 2021 07:14PM
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?
Re: Duplicate Requests for statistics
January 07, 2021 03:42AM
https://github.com/vozlt/nginx-module-vts

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready