Skip to content

[Feature] Support field_access_pattern for Elasticsearch ingest pipelines #5553

Backlog

Description

@reiners-dkv

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

  1. added
    enhancement
    on Dec 3, 2026
  2. added
    needs-research
    triaged
    on Dec 4, 2026
  3. github-actions commented on Dec 4, 2026

    @github-actions
    Contributor

    Thanks for filing this! I've added the needs-research label to this issue.

    This looks like a feature request with a clear scope — extending the elasticstack_elasticsearch_ingest_pipeline resource to support the Elasticsearch field_access_pattern property (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-researchtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions