check-running.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. ==== Checking that Elasticsearch is running
  2. You can test that your Elasticsearch node is running by sending an HTTP
  3. request to port `9200` on `localhost`:
  4. [source,js]
  5. --------------------------------------------
  6. GET /
  7. --------------------------------------------
  8. // CONSOLE
  9. which should give you a response something like this:
  10. ["source","js",subs="attributes,callouts"]
  11. --------------------------------------------
  12. {
  13. "name" : "Cp8oag6",
  14. "cluster_name" : "elasticsearch",
  15. "version" : {
  16. "number" : "{version}",
  17. "build_hash" : "f27399d",
  18. "build_date" : "2016-03-30T09:51:41.449Z",
  19. "build_snapshot" : false,
  20. "lucene_version" : "{lucene_version}"
  21. },
  22. "tagline" : "You Know, for Search"
  23. }
  24. --------------------------------------------
  25. // TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/]
  26. // TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/]
  27. // TESTRESPONSE[s/"build_hash" : "f27399d",/"build_hash" : "$body.version.build_hash",/]
  28. // TESTRESPONSE[s/"build_date" : "2016-03-30T09:51:41.449Z",/"build_date" : $body.version.build_date,/]
  29. // TESTRESPONSE[s/"build_snapshot" : false,/"build_snapshot" : $body.version.build_snapshot,/]
  30. // So much s/// but at least we test that the layout is close to matching....