You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Connecting to your Elasticsearch Serverless endpoint
3
+
4
+
[discrete]
5
+
[[elasticsearch-create-new-api-key]]
6
+
== Create a new API key
7
+
8
+
Create an API key, which will enable you to access the {es} API to ingest and search data.
9
+
10
+
. On the **Getting Started** page, scroll to **Add an API Key** and select **New**.
11
+
+
12
+
image::images/create-an-api-key.png[Create an API key.]
13
+
. In **Create API Key**, enter a name for your key and (optionally) set an expiration date.
14
+
. (Optional) Under **Control Security privileges**, you can set specific access permissions for this API key. By default, it has full access to all APIs.
15
+
. (Optional) The **Add metadata** section allows you to add custom key-value pairs to help identify and organize your API keys.
16
+
. Select **Create API Key** to finish.
17
+
18
+
After creation, you'll see your API key displayed as an encoded string.
19
+
Store this encoded API key securely. It is displayed only once and cannot be retrieved later.
20
+
You will use this encoded API key when sending API requests.
21
+
22
+
[NOTE]
23
+
====
24
+
You can't recover or retrieve a lost API key. Instead, you must delete the key and create a new one.
25
+
====
26
+
27
+
[discrete]
28
+
[[elasticsearch-get-started-copy-url]]
29
+
== Copy your {es} endpoint
30
+
31
+
Copy the URL of your {es} API endpoint.
32
+
You'll send all {es} API requests to this URL.
33
+
34
+
. On the **Getting Started** page, scroll to **Copy your connection details** section, and find the **Elasticsearch endpoint** field.
35
+
. Copy the URL for the Elasticsearch endpoint.
36
+
37
+
image::images/copy-connection-details.png[Copy your Elasticsearch endpoint.]
38
+
39
+
[discrete]
40
+
[[elasticsearch-get-started-test-connection]]
41
+
== Test connection
42
+
43
+
We'll use the `curl` command to test your connection and make additional API requests.
44
+
(See https://everything.curl.dev/install/index.html[Install curl] if you need to install this program.)
45
+
46
+
`curl` will need access to your Elasticsearch endpoint and `encoded` API key.
47
+
Within your terminal, assign these values to the `ES_URL` and `API_KEY` environment variables.
You've set up an {es} project, and you've ingested and searched some sample data.
195
-
Now you're ready to continue on your own.
196
-
197
-
[discrete]
198
-
[[elasticsearch-get-started-explore]]
199
-
=== Explore
200
-
201
-
Want to explore the sample documents or your own data?
202
-
203
-
By creating a data view, you can explore data using several UI tools, such as Discover or Dashboards. Or, use {es} aggregations to explore your data using the API. Find more information in <<elasticsearch-explore-your-data>>.
62
+
== Ingest data
204
63
205
-
[discrete]
206
-
[[elasticsearch-get-started-build]]
207
-
=== Build
64
+
Elasticsearch provides several methods for ingesting data:
* https://github.com/elastic/crawler[Elastic Open Web Crawler]
210
72
211
-
To learn more about sending and syncing data to {es}, or the search API and its query DSL, check <<elasticsearch-ingest-your-data>> and <<elasticsearch-http-apis>>.
73
+
For more information on data ingestion and synchronization,
74
+
see <<elasticsearch-ingest-your-data>>.
75
+
To learn about the search API and query DSL, refer to <<elasticsearch-http-apis>>.
0 commit comments