Analyzing logs by grouping set up logs in same thread

Hi,
I have following use case
In one req-response cycle i will have 2 log statements like
1. data is served from cache / or not
2. total time taken for the request : 1234

I would like to analyze in kibana, how much % of requests are served from cache, avg time for req served from cache, avg time of req not served from cache.

How can i write query like -> group all records having served from cache and get avg response time for those records.

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