check-running.asciidoc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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,console]
  5. --------------------------------------------
  6. GET /
  7. --------------------------------------------
  8. which should give you a response something like this:
  9. ["source","js",subs="attributes,callouts"]
  10. --------------------------------------------
  11. {
  12. "name" : "Cp8oag6",
  13. "cluster_name" : "elasticsearch",
  14. "cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",
  15. "version" : {
  16. "number" : "{version_qualified}",
  17. "build_flavor" : "{build_flavor}",
  18. "build_type" : "{build_type}",
  19. "build_hash" : "f27399d",
  20. "build_date" : "2016-03-30T09:51:41.449Z",
  21. "build_snapshot" : false,
  22. "lucene_version" : "{lucene_version}",
  23. "minimum_wire_compatibility_version" : "1.2.3",
  24. "minimum_index_compatibility_version" : "1.2.3"
  25. },
  26. "tagline" : "You Know, for Search"
  27. }
  28. --------------------------------------------
  29. // TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/]
  30. // TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/]
  31. // TESTRESPONSE[s/"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",/"cluster_uuid" : "$body.cluster_uuid",/]
  32. // TESTRESPONSE[s/"build_hash" : "f27399d",/"build_hash" : "$body.version.build_hash",/]
  33. // TESTRESPONSE[s/"build_date" : "2016-03-30T09:51:41.449Z",/"build_date" : $body.version.build_date,/]
  34. // TESTRESPONSE[s/"build_snapshot" : false,/"build_snapshot" : $body.version.build_snapshot,/]
  35. // TESTRESPONSE[s/"minimum_wire_compatibility_version" : "1.2.3"/"minimum_wire_compatibility_version" : $body.version.minimum_wire_compatibility_version/]
  36. // TESTRESPONSE[s/"minimum_index_compatibility_version" : "1.2.3"/"minimum_index_compatibility_version" : $body.version.minimum_index_compatibility_version/]
  37. // So much s/// but at least we test that the layout is close to matching....