Skip to content

Add support for flattened fields with ignore_above in mappings#238890

Merged
teresaromero merged 2 commits intoelastic:mainfrom
teresaromero:223245-flattened-ignore-above
Oct 17, 2025
Merged

Add support for flattened fields with ignore_above in mappings#238890
teresaromero merged 2 commits intoelastic:mainfrom
teresaromero:223245-flattened-ignore-above

Conversation

@teresaromero
Copy link
Copy Markdown
Contributor

@teresaromero teresaromero commented Oct 14, 2025

Summary

Fix #223245

Fields of type flattened where being mapped as default. This did not include ignore_above field.
This PR fixes the mapping and includes ignore_above field if exists. If the field is not present, it does not use a default value.

Testing done:

  • unit test case for generateMappings function
  • manual testing installing the reported integration and checking the field is now being mapped.
    using crowdstrike integration and adding ignore_above to the flattened field. once installed, add the integration to an agent policy and verify the mapping has included the given field

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

Release note

Fixes ignore_above mapping for flattened fields

@teresaromero teresaromero requested a review from a team as a code owner October 14, 2025 13:37
@botelastic botelastic Bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 14, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@teresaromero teresaromero added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Oct 14, 2025
Copy link
Copy Markdown
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teresaromero
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as this is a bugfix, I think it could be backported to 9.2.

@teresaromero teresaromero added release_note:fix backport:version Backport to applied version labels 9.2 candidate v9.2.0 and removed release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting 9.2 candidate labels Oct 16, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 16, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #62 / APM API tests fleet/apm_package_policy.spec.ts basic no archive APM package policy "after all" hook in "APM package policy"
  • [job] [logs] FTR Configs #62 / APM API tests fleet/apm_package_policy.spec.ts basic no archive APM package policy "after all" hook in "APM package policy"
  • [job] [logs] FTR Configs #62 / APM API tests fleet/apm_package_policy.spec.ts basic no archive APM package policy "before all" hook in "APM package policy"
  • [job] [logs] FTR Configs #62 / APM API tests fleet/apm_package_policy.spec.ts basic no archive APM package policy "before all" hook in "APM package policy"
  • [job] [logs] FTR Configs #55 / APM API tests fleet/migration_check.spec.ts cloud no archive Fleet migration check - cloud has_cloud_agent_policy with Cloud agent policy "before all" hook for "should be true when cloud agent policy exists"
  • [job] [logs] FTR Configs #55 / APM API tests fleet/migration_check.spec.ts cloud no archive Fleet migration check - cloud has_cloud_agent_policy with Cloud agent policy "before all" hook for "should be true when cloud agent policy exists"
  • [job] [logs] FTR Configs #88 / Cloud Security Posture Agentless cloud Hyperlink on PostInstallation Modal should have the correct URL
  • [job] [logs] FTR Configs #88 / Cloud Security Posture Agentless cloud Hyperlink on PostInstallation Modal should have the correct URL
  • [job] [logs] FTR Configs #126 / Cloud Security Posture Test adding Cloud Security Posture Integrations CNVM CNVM AWS Hyperlink on PostInstallation Modal should have the correct URL
  • [job] [logs] FTR Configs #126 / Cloud Security Posture Test adding Cloud Security Posture Integrations CSPM GCP CIS_GCP Single Post Installation Google Cloud Shell modal pops up after user clicks on Save button when adding integration, when there are no Project ID, it should use default value
  • [job] [logs] FTR Configs #92 / cloud_security_posture Agentless API Serverless should create default agent-based agent
  • [job] [logs] FTR Configs #92 / cloud_security_posture Agentless API Serverless should create default agent-based agent
  • [job] [logs] FTR Configs #54 / Dataset Quality Dataset quality alerting User can create rules "before all" hook for "page shows create rule button"
  • [job] [logs] FTR Configs #65 / serverless observability UI Onboarding Onboarding Auto-Detect guides user through data onboarding
  • [job] [logs] FTR Configs #65 / serverless observability UI Onboarding Onboarding Auto-Detect guides user through data onboarding
  • [job] [logs] FTR Configs #123 / Synthetics API Tests AddProjectMonitors "before all" hook for "project monitors - saves space as data stream namespace"
  • [job] [logs] FTR Configs #123 / Synthetics API Tests AddProjectMonitors "before all" hook for "project monitors - saves space as data stream namespace"

Metrics [docs]

✅ unchanged

History

@teresaromero teresaromero merged commit aa12bed into elastic:main Oct 17, 2025
23 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.2

https://github.com/elastic/kibana/actions/runs/18586893092

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2025
…ic#238890)

## Summary

Fix elastic#223245

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release note

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit aa12bed)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 17, 2025
…238890) (#239490)

# Backport

This will backport the following commits from `main` to `9.2`:
- [Add support for flattened fields with ignore_above in mappings
(#238890)](#238890)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Tere","email":"teresa.romero@elastic.co"},"sourceCommit":{"committedDate":"2025-10-17T08:20:07Z","message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:version","v9.2.0","v9.3.0"],"title":"Add
support for flattened fields with ignore_above in
mappings","number":238890,"url":"https://github.com/elastic/kibana/pull/238890","mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238890","number":238890,"mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}}]}]
BACKPORT-->

Co-authored-by: Tere <teresa.romero@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
…ic#238890)

## Summary

Fix elastic#223245 

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release note

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
…ic#238890)

## Summary

Fix elastic#223245 

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

## Release note

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kcreddy
Copy link
Copy Markdown
Contributor

kcreddy commented Nov 19, 2025

LGTM, as this is a bugfix, I think it could be backported to 9.2.

@teresaromero, can we also backport to all 8.19 and 9.1?
Currently the integration encountering this issue supports ^8.18.0 || ^9.0.0, so we would like the fix to be backported into more major versions so that more users get benefit from this fix.
cc: @juliaElastic

@teresaromero
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@teresaromero
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.1
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

teresaromero added a commit to teresaromero/kibana that referenced this pull request Nov 19, 2025
…ic#238890)

Fix elastic#223245

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit aa12bed)
teresaromero added a commit to teresaromero/kibana that referenced this pull request Nov 20, 2025
…ic#238890)

Fix elastic#223245

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit aa12bed)
teresaromero added a commit to teresaromero/kibana that referenced this pull request Nov 20, 2025
…ic#238890)

Fix elastic#223245

Fields of type `flattened` where being mapped as default. This did not
include `ignore_above` field.
This PR fixes the mapping and includes `ignore_above` field if exists.
If the field is not present, it does not use a default value.

Testing done:

- unit test case for `generateMappings` function
- manual testing installing the reported integration and checking the
field is now being mapped.
using `crowdstrike` integration and adding `ignore_above` to the
[flattened
field](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).
once installed, add the integration to an agent policy and verify the
mapping has included the given field

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

Fixes `ignore_above` mapping for `flattened` fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit aa12bed)
teresaromero added a commit that referenced this pull request Nov 20, 2025
…238890) (#243532)

# Backport

This will backport the following commits from `main` to `9.1`:
- [Add support for flattened fields with ignore_above in mappings
(#238890)](#238890)

<!--- Backport version: 10.1.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Tere","email":"teresa.romero@elastic.co"},"sourceCommit":{"committedDate":"2025-10-17T08:20:07Z","message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:version","v9.2.0","v9.3.0"],"title":"Add
support for flattened fields with ignore_above in
mappings","number":238890,"url":"https://github.com/elastic/kibana/pull/238890","mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/239490","number":239490,"state":"MERGED","mergeCommit":{"sha":"08792efca38a2b6f8d4d9db92f9536dea9186071","message":"[9.2]
Add support for flattened fields with ignore_above in mappings (#238890)
(#239490)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.2`:\n- [Add support for flattened fields with ignore_above
in
mappings\n(#238890)](https://github.com/elastic/kibana/pull/238890)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Tere <teresa.romero@elastic.co>\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>"}},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238890","number":238890,"mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}}]}]
BACKPORT-->

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
teresaromero added a commit that referenced this pull request Nov 20, 2025
…#238890) (#243534)

# Backport

This will backport the following commits from `main` to `8.19`:
- [Add support for flattened fields with ignore_above in mappings
(#238890)](#238890)

<!--- Backport version: 10.1.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Tere","email":"teresa.romero@elastic.co"},"sourceCommit":{"committedDate":"2025-10-17T08:20:07Z","message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:version","v9.2.0","v9.3.0"],"title":"Add
support for flattened fields with ignore_above in
mappings","number":238890,"url":"https://github.com/elastic/kibana/pull/238890","mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/239490","number":239490,"state":"MERGED","mergeCommit":{"sha":"08792efca38a2b6f8d4d9db92f9536dea9186071","message":"[9.2]
Add support for flattened fields with ignore_above in mappings (#238890)
(#239490)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.2`:\n- [Add support for flattened fields with ignore_above
in
mappings\n(#238890)](https://github.com/elastic/kibana/pull/238890)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Tere <teresa.romero@elastic.co>\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>"}},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238890","number":238890,"mergeCommit":{"message":"Add
support for flattened fields with ignore_above in mappings
(#238890)\n\n## Summary\n\nFix #223245 \n\nFields of type `flattened`
where being mapped as default. This did not\ninclude `ignore_above`
field.\nThis PR fixes the mapping and includes `ignore_above` field if
exists.\nIf the field is not present, it does not use a default
value.\n\nTesting done:\n\n- unit test case for `generateMappings`
function\n- manual testing installing the reported integration and
checking the\nfield is now being mapped.\nusing `crowdstrike`
integration and adding `ignore_above` to
the\n[flattened\nfield](https://github.com/elastic/integrations/blob/main/packages/crowdstrike/data_stream/falcon/fields/fields.yml#L689).\nonce
installed, add the integration to an agent policy and verify
the\nmapping has included the given field\n\n### Checklist\n\nCheck the
PR satisfies following conditions. \n\nReviewers should verify this PR
satisfies this list as well.\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [ ] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[ ] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nFixes
`ignore_above` mapping for `flattened` fields\n\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"aa12bed49740bab72bc3466e3d8ec66198c87d9e"}}]}]
BACKPORT-->

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:Fleet Team label for Observability Data Collection Fleet team v8.19.8 v9.1.8 v9.2.0 v9.3.0

6 participants