[SOLVED] Measuring duration without using elapsed

I've been using the elapsed plugin Github Link to determine the duration of events in my syslog parse and the plugin is not yet compatible with v5.

I've subscribed to the GitHub to see when it gets updated, does anyone have any recommendation on how to measure in the meantime? Right now I'm inserting three tags into my records:
taskQueued shows when the request is made
taskStarted shows when the process actually starts
taskCompleted shows when the event completes

They all have a common variable (eventSeriesId)
I then use a ruby call to subtract the difference between the queued to complete time and the started to complete time to attach three values:
Task time
Queue Time
Overall Time

Is there another way to accomplish this without elapsed?

Thanks!

Record both timestamp in different fields and use a "scripted" field to calculate the difference

This would give you an example

1 Like

Thank you very much. The elapsed plugin was updated the day after I posted this. I'll close out as solved, but it is good to have another option. Thanks again!

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