Best way to count documents in index

Hi Guys,

I'm creating a pipeline to calculate a price.
I need to multiply the number of documents of my index (with a filter like room = red) with a constant 1.27€.

Could you please help me about the best way in order to count the documents in my index?

Thanks!

If you want to count docs which are already in ES, then use Kibana Lens which is difference subforum.

Hi Rios,

thanks for your help!
I need to apply some rules inside my calculation, so if possible I would like to count the documents in index, apply the rules and insert a new document in a dedicated index with the price, the number of documents and so on

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