Measure time elapsed between apache entering request and tomcat exiting request

Hi,

We have developed some sort of proxy for a client's need. Incoming requests are processed and send it to the final destination.
We need to measure the transit time between us, which is concretely the time between the arrival log on our Apache and the tomcat log (juste before we send it to the destination).
These logs are on two separate files (apache httpd log and tomcat log). The target log lines have a common identifier.

Example:
Apache Journal

185.113.39.55 - - [02/Dec/2019:15:29:09 +0000] "POST /myapplication HTTP/1.1" 200 266 aa137784-e33d-4474-ae1b-0b879779ca85 101284

Log tomcat:

2019-12-02T15: 29: 09.087Z, [http-nio-8080-exec-2], aa137784-e33d-4474-ae1b-0b879779ca85, OUTBOUND request sent

Regards,

You could do that using an aggregate filter.

1 Like

Do I have to build one index or two for this need ?

You would only need one index.

1 Like

I found this on stackoverflow, which is not far from my need.

Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.