We run nginx as a reverse proxy, which redirects requests to a Clojure application that runs Compojure, a library that wraps Jetty and provides our application with the ability to serve web requests.
We are currently logging logs created by both nginx and the Clojure application (via log4j in syslog). However, we cannot match the nginx log entry with the syslog output of the Clojure application.
We need to figure out how to modify the request sent upstream in the Clojure application to include some kind of identifier. It can be an integer, UUID, whatever.
Do you have any suggestions on how best to accomplish this?
Thank you for your help!
source
share