AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS ELK on Ubuntu 21.04
  5. Elasticsearch

Elasticsearch

This documentation guide you through how to get started with Elasticsearch.

Use command line to run curl -X GET "localhost:9200/" to see if Elasticsearch is running. It should give the following if successful:

{
 “name” : “ip-172–31–28–88”,
 “cluster_name” : “my-application”,
 “cluster_uuid” : “dLfzIIfwSEWOnuu5i1I6OQ”,
 “version” : {
 “number” : “7.2.0”,
     “build_flavor” : “default”,
     “build_type” : “deb”,
     “build_hash” : “508c38a”,
     “build_date” : “2019–06–20T15:54:18.811730Z”,
     “build_snapshot” : false,
     “lucene_version” : “8.0.0”,
     “minimum_wire_compatibility_version” : “6.8.0”,
     “minimum_index_compatibility_version” : “6.0.0-beta1”
 },
 “tagline” : “You Know, for Search”
}

Alternatively, you can also check the status by sudo service elasticsearch status . If the service is down, run sudo service elasticsearch restart or sudo service elasticsearch stop to restart the service. Wait at least 30s to check the status again.

By default, all three services will automatically start when you launch the instance.

Start using Elasticsearch with Introduction to Indexing.

Was this article helpful to you? Yes No

How can we help?