Skip to content

elasticsearch

Elasticsearch storage, used to define the Elasticsearch cluster, index, and connection metadata required for query planning.

Kind: elasticsearch

Every element shares the standard envelope kind · metadata · schema.

spec fields

FieldTypeRequiredDefaultDescription
endpointstringyesThe Elasticsearch cluster endpoint, for example https://es.example.com:9200.
indexstringyesThe default index name to query. It may also be an Elasticsearch-supported index wildcard expression.
index_patternstringIndex pattern for time-rolled indices, for example logs-${yyyy.MM.dd}. When empty, query planning uses the index field.
versionstringThe Elasticsearch version or version family, for example 7.x or 8.x.
query_dialectenum: elasticsearch_dsl, lucene, eqlelasticsearch_dslQuery generation dialect. Elasticsearch Query DSL is used by default.
time_fieldstringTime field used to push request time ranges into Elasticsearch queries.
default_sizeinteger1000Default query size when no explicit limit is provided.
max_sizeinteger10000Maximum query size allowed by the planner to avoid producing excessively large query plans.
routingstringOptional Elasticsearch routing value for queries that should target a fixed routing key.
credential_refstringCredential reference, for example secret://es-prod-readonly. Plaintext usernames, passwords, or tokens must not be stored in UModel.
tls_verifybooleantrueWhether TLS certificates should be verified. Defaults to true.
headersmap<string, string>Non-sensitive HTTP headers for tenant or routing context. Authentication secrets must not be stored here.
propertiesmap<string, string>Additional non-sensitive Elasticsearch configuration, stored as key-value pairs.
tagsmap<string, string>Tags used to describe this Elasticsearch storage.

Released under the Apache-2.0 License.