Logs average time spend

Hello,

I’m working with log files stored in ElasticSearch, that contains information about some operations on differents levels, I have a field timestamp that represents the time when each operation has occured on each step.

I want to calculate the time of spend on each level to visualize it on Grafana, the problem is i did not find something in the documentation or I didn’t chose the correct keyword.

As a reminder I want to calculate the time Average processing time for each step of the operation so I can visualize it on Grafana.

did you mean to say visualize it in grafana? Anyways could you please provide sample json data with bogus data

1 Like

As a reminder I want to calculate the average processing time for each step of the operation so I can visualize it on Grafana.

Yes that’s what I want to say, this is an example of my logs.

{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:06.124890Z”,“event_type”:“step1”,“mid”:“96712abc”}{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:07.124890Z”,“event_type”:“step2”,“mid”:“96712abc”}
{“log_level”:“INFO”,“timestamp”:“2021-12-22T11:49:08.124890Z”,“event_type”:“step3”,“mid”:“96712abc”}

1 Like

average time across all steps?

1 Like

Between Step 1 and step 3