Cumulative count using Elasticsearch

Hi,

I need to create a graph that shows the cumulative count of documents from Elasticsearch. I’m using filebeat to get the documents.

image

I have the configuration above but it shows the count per minute. I would like it to increase the count everytime with the count before.

Is that possible? Is there another way I can resolve it?

Thank you

Can anyone help me? Thanks