Find out the number of _search requests made to an Elasticsearch index

Asked

Viewed 22 times

1

I am working with Elasticsearch and would like to find out a precise way to know how many requests have been made to an index of my Elasticsearch.

using the GET - /"seuindex"/_Stats command, I have some information but I believe that the of how many SEARCHS were made is not there, I could not locate it

1 answer

1

You can use endpoint _count to know how many hits occurred in the index, including using criteria:

GET /<index>/_count

This way you can perform the request as follows:

curl -X GET "localhost:9200/traffic/_count?q=plate:xpto1234"

This will return me the amount of hits of my criterion plate:xpto1234 on my index traffic

In the documentation there are other examples as well as more advanced options.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.