Elastic Search
Kubemq elastic-search target connector allows services using kubemq server to access elastic-search database services.
Prerequisites
The following are required to run the elastic-search target connector:
kubemq cluster
elastic-search server
kubemq-targets deployment
Configuration
Elastic Search target connector configuration properties:
Properties Key | Required | Description | Example |
urls | yes | elastic-search list of urls separated by comma | |
username | no | elastic-search username | "admin" |
password | no | elastic-search password | "password" |
sniff | no | set sniff opn connect | "true", "false" |
Example:
Usage
Get Request
Get request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name get | "get" |
index | yes | elastic-search index table | any string |
id | yes | document id | any string |
Example:
Set Request
Set request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name set | "set" |
index | yes | elastic-search index table | any string |
id | yes | document id | any string |
Set request data setting:
Data Key | Required | Description | Possible values |
data | yes | data to set for the elastic-search key | base64 bytes array |
Example:
Delete Request
Delete request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name delete | "delete" |
index | yes | elastic-search index table | any string |
id | yes | document id | any string |
Example:
Index Exists Request
Index exists request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name index.exists | "index.exists" |
index | yes | elastic-search index table | any string |
Example:
Index Create Request
Index create request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name index.create | "index.create" |
index | yes | elastic-search index table | any string |
Index create data setting:
Data Key | Required | Description | Possible values |
data | yes | data to set index mapping | base64 bytes array |
Example:
Mapping log index
Request:
Index Delete Request
Index Delete request metadata setting:
Metadata Key | Required | Description | Possible values |
method | yes | method name index.delete | "index.delete" |
index | yes | elastic-search index table | any string |
Example:
Last updated