Derivatives with "missing docs"

Hi, I have a problem where I need to calculate the derivative on a sequence of documents that are Not at a specific interval.

As a simplified example , imagine a series "login" event inserted into an index with a timestamp and (lets say) the timestamp as an epoch value.
I want to a derivative on the epochs (and subsequent bucket_selector) to only return buckets with a "duration" less than x.

However both the derivative and serial_differencing aggregation requires the parent histogram to have min_doc_count:0 - which prevents me from just getting the derivative between arbitrary sequential documents... or am I missing something ?

P.S. Am on ES 7.16 (Unfortunately cant upgrade -right now- to a newer version)

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