Skip to main content

Elastic Cloud

Updated Dec 30, 2022 ·

Overview

Elastic Cloud is a managed service for deploying, running, and scaling the Elasticsearch Stack in the cloud. It simplifies the process of setting up and maintaining Elasticsearch and its associated tools.

  • Fully managed Elasticsearch service
  • Includes search, analytics, and observability
  • Supports AWS, Google Cloud, and Azure for deployment

Creating a Deployment

To use this managed service, sign up for a 14-day trial cluster. During sign-up, an Elasticsearch cluster will be created for you based on the details you'll provide.

For this demo, I've deleted the deployment created during sign up and created a new one.

  1. On the Elastic main page, go to Deployment > Create deployment.

  2. Set the following details. You can change the cloud provider and the region based on your preferred location. Click Continue.

  3. Choose a solution view. You can change this later. Click Create deployment afterwards.

  4. Make sure to save the deployment credentials.

  5. The deployment will take around 10 minutes. Once done, click Continue.

  6. In the main page, you'll see the Elasticsearch endpoint.

Testing the Cluster

Use the Elasticsearch endpoint and run the following command

curl -XGET https://add-elastic-endpoint-here:443

As expected, this will return an error. This is because Elasticsearch is using X-PACK...

{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401} 

To authenticate to the cluster, provide the credentials:

curl -XGET https://add-elastic-endpoint-here:443 -u elastic:add-password-here 

It should now succeed.

{
"name" : "instance-0000000000",
"cluster_name" : "dfkhsfkjhdfksdkfjshdfkhsdfkjh",
"cluster_uuid" : "QMwQk4tIQyidcGrNoJyp0A",
"version" : {
"number" : "8.17.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "fldjkajdflkajklsdjflkjdasflkajlkjalkdsjas",
"build_date" : "2023-01-10T10:08:26.972230187Z",
"build_snapshot" : false,
"lucene_version" : "9.12.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}

Import Log File

Login to the Elastic page and perform the following:

  1. On the Overview page, scroll down to Ingest your content and click Upload a file.

  2. Click Select or drag and drop a file, and select the dataset. You can download the dataset here: movies.json

  3. It will display a sample from the dataset, as well as the summary.

  4. The File stays section also displays details about fields in the uploaded datasets.

  5. After reviewing, click Import. Provide an index name > Import.

  6. You should see all steps are cleared.

  7. On the left panel, click Discover. You should now see the movies index created.