Find the Delta difference between bucket aggregations

I have 2 buckets aggregration for different time interval. i get metrics from different data sources and i get the unique count of metrics i get from different data source. Example
my individual bucket aggregation looks like this
Bucket 1 (Timestamp: yesterday)

{data source1} {unique count 1}
{data source 2} {unique count 2}
{data source n} {unique count n}

Bucket 2 (Timestamp: today)

{data source1} {unique count 1}
{data source 2} {unique count 2}
{data source n} {unique count n}

I want to find the delta of unique counts between each data-source across the 2 buckets and plot the delta against the data source. How could i achieve it. ?

What tool are you using to visualize your data? As it is, the question seems to be more about Elasticsearch, which has a different group on Discuss: https://discuss.elastic.co/c/elasticsearch

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