Need one or last one as output from elastic search bucket aggregation

Hi Friends
I am new to Elastic search.

In this page we are getting sum of all records
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html

here it displays all time intervals data and sum also.. it is good. but is there anyway to get only one json as output or i need only last time interval record only displayed instead of each time interval record (no need sum) please help me.

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