[8.19] Adding space_id field mapping to kibana reporting template (#128336)#129061
Merged
elasticsearchmachine merged 1 commit intoelastic:8.19from Jun 6, 2025
Merged
Conversation
pmuellr
added a commit
to pmuellr/kibana
that referenced
this pull request
Aug 8, 2025
… startup resolves: elastic#231200 This PR adds code run at startup to: - read the `.kibana-reporting` index template to get the mappings - apply those mappings directly to the write index of the `.kibana-reporting` data stream This is needed for those times when the mappings change, for instance in this PR: elastic/elasticsearch#129061. The mappings do get updated, but are not applied to the data stream, so in fact the "new" fields (when updates happen) are not actually mapped in the existing data stream. I was hoping to actually roll over the index, but it's not clear how we could determine if we need to, and we certainly don't want to do that on every restart. Re-applying the mappings will ensure that any changes to the index template's mapping are made to the current index.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the following commits to 8.19:
space_idfield mapping to kibana reporting template (Addingspace_idfield mapping to kibana reporting template #128336)