check-running.asciidoc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ==== Check that Elasticsearch is running
  2. You can test that your {es} node is running by sending an HTTPS request to port
  3. `9200` on `localhost`:
  4. ["source","sh",subs="attributes"]
  5. ----
  6. curl --cacert {os-dir}{slash}tls_auto_config_<timestamp>{slash}http_ca.crt \
  7. -u elastic https://localhost:9200 <1>
  8. ----
  9. // NOTCONSOLE
  10. <1> Ensure that you use `https` in your call, or the request will fail.
  11. +
  12. `--cacert`::
  13. Path to the generated `http_ca.crt` certificate for the HTTP layer.
  14. Enter the password for the `elastic` user that was generated during
  15. installation, which should return a response like this:
  16. ////
  17. The following hidden request is required before the response. Otherwise, you'll
  18. get an error because there's a response with no request preceding it.
  19. [source,console]
  20. ----
  21. GET /
  22. ----
  23. ////
  24. ["source","js",subs="attributes,callouts"]
  25. --------------------------------------------
  26. {
  27. "name" : "Cp8oag6",
  28. "cluster_name" : "elasticsearch",
  29. "cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",
  30. "version" : {
  31. "number" : "{version_qualified}",
  32. "build_flavor" : "{build_flavor}",
  33. "build_type" : "{build_type}",
  34. "build_hash" : "f27399d",
  35. "build_date" : "2016-03-30T09:51:41.449Z",
  36. "build_snapshot" : false,
  37. "lucene_version" : "{lucene_version}",
  38. "minimum_wire_compatibility_version" : "1.2.3",
  39. "minimum_index_compatibility_version" : "1.2.3"
  40. },
  41. "tagline" : "You Know, for Search"
  42. }
  43. --------------------------------------------
  44. // TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/]
  45. // TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/]
  46. // TESTRESPONSE[s/"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",/"cluster_uuid" : "$body.cluster_uuid",/]
  47. // TESTRESPONSE[s/"build_hash" : "f27399d",/"build_hash" : "$body.version.build_hash",/]
  48. // TESTRESPONSE[s/"build_date" : "2016-03-30T09:51:41.449Z",/"build_date" : $body.version.build_date,/]
  49. // TESTRESPONSE[s/"build_snapshot" : false,/"build_snapshot" : $body.version.build_snapshot,/]
  50. // TESTRESPONSE[s/"minimum_wire_compatibility_version" : "1.2.3"/"minimum_wire_compatibility_version" : $body.version.minimum_wire_compatibility_version/]
  51. // TESTRESPONSE[s/"minimum_index_compatibility_version" : "1.2.3"/"minimum_index_compatibility_version" : $body.version.minimum_index_compatibility_version/]
  52. // So much s/// but at least we test that the layout is close to matching....