Forums

how to print incoming requests with response-time?

hello, i need to print requests with response-time >= 10 sec. Is that possible? thanks

That information is already in your access log, you can use a Python script to run through the lines in the access log, parse out the response time and then print only the ones that you're interested in.

thanks, but i would like to print not info from access log but the request body, is it possible?

take a look at what each line of the access log looks like. any information you can get would be from that. you may be able to get info like the exact endpoint that was hit, and so you would be able to see something like what the query string was, but nothing more.