Elasticsearch input plugin used to _count documents. Is it possible?

Hey there,
I was trying to use the Elasticsearch input plugin just to count documents in a specific timerange or to count the specific _type documents or so on, but I saw that I cannot use the _count method and I saw also that if I use a standard query and try to get the hits.total field value I cannot do that. is it correct?
Is there any way to get what I was looking for? I need to get something that I could name "count metrics" and then store them into another output plugin (file or bigquery).
Is Elasticsearch input plugin designed just for extract documents and nothing else (aggregations....)?

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