I am using the _cat
API of elasticsearch to get the various details of my elasticsearch cluster.
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
What I want is the ability to filter the response which I can't see in the documentation, for example output of _cat/node?v
give the node.role
which tells whether a node is data
or master
or ingest
node and I want a way to filter the only master
and data
node in the response.