|
| 1 | +--- |
| 2 | +title: "Elasticsearch" |
| 3 | +type: docs |
| 4 | +weight: 1 |
| 5 | +description: > |
| 6 | + Elasticsearch is a distributed, free and open search and analytics engine |
| 7 | + for all types of data, including textual, numerical, geospatial, structured, |
| 8 | + and unstructured. |
| 9 | +--- |
| 10 | + |
| 11 | +# Elasticsearch Source |
| 12 | + |
| 13 | +[Elasticsearch][elasticsearch-docs] is a distributed, free and open search and analytics engine |
| 14 | +for all types of data, including textual, numerical, geospatial, structured, |
| 15 | +and unstructured. |
| 16 | + |
| 17 | +If you are new to Elasticsearch, you can learn how to |
| 18 | +[set up a cluster and start indexing data][elasticsearch-quickstart]. |
| 19 | + |
| 20 | +Elasticsearch uses [ES|QL][elasticsearch-esql] for querying data. ES|QL |
| 21 | +is a powerful query language that allows you to search and aggregate data in |
| 22 | +Elasticsearch. |
| 23 | + |
| 24 | +See the [official documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html) for more information. |
| 25 | + |
| 26 | +[elasticsearch-docs]: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html |
| 27 | +[elasticsearch-quickstart]: https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html |
| 28 | +[elasticsearch-esql]: https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html |
| 29 | + |
| 30 | +## Available Tools |
| 31 | + |
| 32 | +- [`elasticsearch-esql`](../tools/elasticsearch/elasticsearch-esql.md) |
| 33 | + Execute ES|QL queries. |
| 34 | + |
| 35 | +## Requirements |
| 36 | + |
| 37 | +### API Key |
| 38 | + |
| 39 | +Toolbox uses an [API key][api-key] to authorize and authenticate when |
| 40 | +interacting with [Elasticsearch][elasticsearch-docs]. |
| 41 | + |
| 42 | +In addition to [setting the API key for your server][set-api-key], you need to |
| 43 | +ensure the API key has the correct permissions for the queries you intend to |
| 44 | +run. See [API key management][api-key-management] for more information on |
| 45 | +applying permissions to an API key. |
| 46 | + |
| 47 | +[api-key]: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html |
| 48 | +[set-api-key]: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html |
| 49 | +[api-key-management]: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html |
| 50 | + |
| 51 | +## Example |
| 52 | + |
| 53 | +```yaml |
| 54 | +sources: |
| 55 | + my-elasticsearch-source: |
| 56 | + kind: "elasticsearch" |
| 57 | + addresses: |
| 58 | + - "http://localhost:9200" |
| 59 | + apikey: "my-api-key" |
| 60 | +``` |
| 61 | +
|
| 62 | +## Reference |
| 63 | +
|
| 64 | +| **field** | **type** | **required** | **description** | |
| 65 | +|-----------|:--------:|:------------:|-------------------------------------------------------------------------------| |
| 66 | +| kind | string | true | Must be "elasticsearch". | |
| 67 | +| addresses | []string | true | List of Elasticsearch hosts to connect to. | |
| 68 | +| apikey | string | true | The API key to use for authentication. | |
0 commit comments