Repository navigation
Description
Is your feature request related to a problem? Please describe.
First of all, thank you for the great Terraform provider. We use the Elastic Stack provider extensively and it covers almost all of our requirements with very good quality.
We manage our Elasticsearch configuration exclusively through Infrastructure as Code using Terraform.
We recently migrated our Elasticsearch data to the OpenTelemetry (OTel) schema without an ECS compatibility layer.
As part of this migration, we discovered an important gap in the elasticstack_elasticsearch_ingest_pipeline resource.
OTel fields frequently use dotted field names. For example:
attributes.http.request.method
Elasticsearch ingest pipelines support the flexible field access pattern, which significantly simplifies working with such fields.
In Kibana, this can be enabled for an ingest pipeline using:
Use the flexible field access pattern
In the ingest pipeline JSON representation, this corresponds to:
- field_access_pattern: "classic" - default
- field_access_pattern: "flexible"
Currently, we cannot configure field_access_pattern through the elasticstack_elasticsearch_ingest_pipeline Terraform resource.
We also tried creating the ingest pipeline manually with field_access_pattern: "flexible" and then managing it through Terraform. However, Terraform changes/resets the setting back to the default classic behavior.
Describe the resource you would like to have implemented.
The existing elasticstack_elasticsearch_ingest_pipeline resource should be extended to support the Elasticsearch ingest pipeline field_access_pattern property.
The property should allow configuring the supported field access patterns, in particular flexible, so that the setting can be fully managed through Terraform.
Describe the solution you'd like
Please add support for configuring field_access_pattern on the elasticstack_elasticsearch_ingest_pipeline resource.
For example, conceptually:
field_access_pattern = "flexible"
The provider should support at least the values supported by Elasticsearch:
- classic
- flexible
If the attribute is not specified, the existing/default Elasticsearch behavior should remain unchanged.
Describe alternatives you've considered
Without this option, we have to add additional processors/workaround logic to handle dotted OTel field names.
This adds unnecessary complexity to our ingest pipelines for a problem that Elasticsearch already solves natively through the flexible field access pattern.
We also considered creating the pipelines outside Terraform, but this conflicts with our approach of managing the complete Elasticsearch configuration through Infrastructure as Code.
Additional context
This capability becomes particularly important when using Elasticsearch with the native OpenTelemetry schema without an ECS compatibility layer.
Supporting field_access_pattern would allow OTel-based ingest pipelines to use Elasticsearch's native flexible field handling while remaining fully managed through Terraform.
Activity
github-actions commentedon Dec 4, 2026
Thanks for filing this! I've added the
needs-researchlabel to this issue.This looks like a feature request with a clear scope — extending the
elasticstack_elasticsearch_ingest_pipelineresource to support the Elasticsearchfield_access_patternproperty (classic/flexible) — so it has been queued for the research-factory pipeline. Research-factory will produce a detailed implementation specification exploring the Elastic API, schema design, and implementation approach.If I've misclassified this or you have additional context, please leave a comment — a maintainer can adjust the label manually.