Cummulative date sum in Kibana Console

I'm working with a log file,I have a field for timestamp ==> "timestamp":"2021-12-15T16:06:27.269303Z".

I want to perform a cummulative sum on this field in all the document.

I have done this aggregation, but the result is false.
==> code
GET index/_search
{
"aggs":{
"sum_time":{
"sum":{
"field":"timestamp"
}

You will find the result of the aggregation in the picture below
image

Generally, Aggregation sum use for numeric value but if y would like calculate time then u should have reference date for calculation.
Read this topic and I hope that it will be useful for u.

1 Like

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