How to fetch data from multiple hostnames in es

hey all iam new to elk , iam trying to get all the hosts in the Elasticsearch db , i tried using a wildcard and

"wild_card": "hosts",
"query": {
"host.keyword": "test*",
"severity.keyword": "err"
},

consider there are multiple hosts like test1,test2,test3 i want to all them to be listed in a query , can someone help me with this

Hello,

what do you mean with that? Do you want to list the nodes? If so:

GET _cat/nodes

Also: Cluster APIs | Elasticsearch Guide [8.11] | Elastic could help.

hi iam currently using scroll api to fetch logs form es , but it can only fetch for one hostname , but i want to fetch for multiple hostnames that iam giving any idea would help me

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