Therefore, I can successfully execute the request, for example:
localhost:9200/filebeat-*/_count?filter_path=-_shards {"query": { "match_phrase" : { "message" : "o hohoho" } }}
How can I move filter_path=-_shards to the request body to make it work?
source share