Setup
The following credentials keys are accepted:
host
(optional) -> The hostname / ip of the instanceport
(optional) -> The port of the instance. Default is9200
user
(optional) -> The username to access the instancepassword
(optional) -> The password to access the instancehttp_url
(optional) -> Comma-separated list of HTTP URLs to connect to the clustercloud_id
(optional) -> Elastic Cloud deployment IDapi_key
(optional) -> API key for authentication (when using Cloud ID)service_token
(optional) -> Bearer token for authenticationtls
(optional) -> whether to use TLS for connecting (true
/false
)cert_file
(optional) -> the client certificate for TLS (file path or raw)cert_key_file
(optional) -> the client key for TLS (file path or raw)cert_ca_file
(optional) -> the client CA certificate for TLS (file path or raw)
Using sling conns
sling conns
Here are examples of setting a connection named ELASTICSEARCH
. We must provide the type=elasticsearch
property:
Environment Variable
Sling Env File YAML
Last updated