Connecting to Elasticsearch Using cURL

Menu

In this example, we will use curl command to communicate with the Elasticsearch cluster.

Prerequisites

Before making a curl request to the cluster, you first need to whitelist your public IP on your cluster. For more details on how to connect to your cluster click here.

Following are few curl example to communicate with your cluster

Checking your cluster health

Creating indices

Deleting Indices

FREE TRIAL

Spin up a cluster in less
than 5 minutes.
(No credit card required)

Sign Up Now
Close

Site by Swell Design Group