第 22 章 ElasticSearch Index Sink
Stores JSON-formatted data into ElasticSearch.
The input data must be formatted in JSON according to the requirements of the index.
If you specify the certificate property, you must base64 encode it before you pass it as a parameter.
In the header, you can set the following properties:
-
indexId/ce-indexid: The index ID for ElasticSearch. -
indexName/ce-indexname: The index name for ElasticSearch.
If you do not set a property in the header, the Kamelet uses the exchange ID for the index setting.
22.1. Configuration Options 复制链接链接已复制到粘贴板!
The following table summarizes the configuration options available for the elasticsearch-index-sink Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| clusterName * | ElasticSearch Cluster Name | The name of the ElasticSearch cluster. | string | quickstart | |
| hostAddresses * | Host Addresses |
A comma-separated list of remote transport addresses in | string | quickstart-es-http:9200 | |
| certificate | Certificate | The Certificate for accessing the Elasticsearch cluster. You must encode this value in base64. | string | ||
| enableSSL | Enable SSL | Specifies to connect by using SSL. | boolean | True | |
| indexName | Index in ElasticSearch | The name of the ElasticSearch index. | string | data | |
| password | Password | The password to connect to ElasticSearch. | string | ||
| user | Username | The username to connect to ElasticSearch. | string |
* = Fields marked with an asterisk are mandatory.