How do i convert time based events into duration on a chart

Hi,

My data in ES has timestamps varying in seconds and minutes.
Say if i have 10 records with timestamps, with the duration as 10 minutes.
How could i show it in kibana on X axis as 0 to 10 minutes and the data which falls in this interval rather than showing the entire timestamp or time?

Kindly advice.

Is duration a specific field?
If so you can do a range agg.

Hi Mark,

Duration is not a field. I meant that say i have 5 records with timestamps as

November 24, 2015 12:00:00.000
November 24, 2015 12:05:00.000
November 24, 2015 12:10:00.000
November 24, 2015 12:15:00.000
November 24, 2015 12:20:00.000

So now on X axis i need the duration to be calculated and shown as 0, 5, 10, 15, and 20. I hope i tried to keep my point clear.

Is this possible?

Thank you.