I am planning to implement audit trail of my incoming HTTP request .
I was thinking of having some kind of gateway which will redirect every incoming call to 2 server i.e. one is where actual logic written and second will be pass each incoming request to log server application which basically log all api request.I just wanted to know the best way in terms of performance to achieve this requirement. I am ok if we can do with nginx as well.