DSL aggregation query in event pair documents for showing in kibana

I have event document pairs that each one shows the start or end of an event. Every two events have a key with the save value.
for example:
doc1:
{
startTime: 123
endTime: 0
buildId: ABC1 (shared ID)
}

doc2:
{
startTime: 0
endTime: 124
buildId: ABC1 (shared ID)
}

I want to create a chart in Kibana to show processing of events, something like this:
. . . .____ . . . . . . __________
. . . |. . .| . . . . . | . . . . . . .|
___ |. . .|______ | . . . . . . .|____________

Note: It's possible for two separate events (document pair) to occur in a shared time frame. So I DONT need separation in the graph and shows the processing times are enough for me.

I appreciate tips to find a solution for this requrement.

Thanks guys.

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