Checking Cluster Health in Elastic Search

I am Running Windows 7. First I Clicked "ElasticSearch.bat" file to Start a Cluster with One Node. Now I Check the Cluster Health in another Command Window by

curl 'localhost:9200/_cat/health?v'

and It Returns

curl: (6) Could not resolve host: 'localhost

What am I Doing Wrong ?

Edit: Typing 'localhost:9200" in browser gives

{
  "name" : "Claudette St. Croix",
  "cluster_name" : "elasticsearch",
  "version" : 
 {
   "number" : "5.0.0-alpha3",
   "build_hash" : "cad959b",
   "build_date" : "2016-05-26T08:25:57.564Z",
   "build_snapshot" : false,
   "lucene_version" : "6.0.0"
 },
 "tagline" : "You Know, for Search"
}

Looks like the single quote sneaks in in curl on windows maybe use double
quotes?

1 Like

Thanks Man, it solved the Problem :smiley: