Elasticsearch system¶
The Elasticsearch system represents the information needed to connect to an Elasticsearch server/cluster for indexing JSON documents. It is used in conjunction with the Elasticsearch sink.
Prototype¶
{
"_id": "id-of-system",
"name": "Name of system",
"type": "system:elasticsearch",
"hosts": ["localhost:9200"]
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
List<String> |
Contains a list of host+port pairs, or full URL to the Elasticsearch server(s) |
|
|
|
String |
The username to use when authenticating with the HTTP server. Note that you also have to specify
authentication protocol in |
||
|
String |
The password to use if |
||
|
String |
What kind of authentication protocol to use. Note that authentication is opt-in only and the default is no
authentication. Allowed values is “basic” (other authentication methods may be added in the future).
Note that |
Example configuration¶
{
"_id": "our-elasticsearch-server",
"name": "Our Elasticsearch Server",
"type": "system:elasticsearch",
"hosts": ["localhost:9200"]
}
Example configuration with authentication¶
{
"_id": "our-elasticsearch-server",
"name": "Our Elasticsearch Server",
"type": "system:elasticsearch",
"hosts": ["localhost:9200"],
"username": "myusername",
"password": "$SECRET(password)",
"authentication": "basic"
}