-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.9] Add datastream.* to mappings #60592
Conversation
To be filled in
"properties": { | ||
"type": { | ||
"type": "constant_keyword", | ||
"value": "logs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"value": "logs" | |
"value": "metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-( fixed.
I wonder if this actually requires to be merged in 7.9 (as opposed to 7.10), given that Elasticsearch must be upgraded before Agent? |
Yes, as Elasticsearch will not update the template if a template is already there and we plan in 7.9 to already ship |
Thanks, I had misunderstood the plan. |
Pinging @elastic/es-core-features (:Core/Features/Indices APIs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but @ruflin I think this needs additional labels for it being forward-ported? Usually we start with master and backport from there
I opened #60638 and will treat this PR as a backport PR. |
It is planned to move from dataset.* to datastream.*. To make the path easier to 7.9 Elasticsearch (elastic/elasticsearch#60592) and the Elastic Agent already ship with the datastream.* fields. Because of this, these should also be added to the mappings of the packages.
It is planned to move from dataset.* to datastream.*. To make the path easier to 7.9 Elasticsearch (elastic/elasticsearch#60592) and the Elastic Agent already ship with the datastream.* fields. Because of this, these should also be added to the mappings of the packages. The agent will ship datastream.* fields. Because of this, the import scripts can be adjusted to only use these fields. This PR doese not rename any Golang variables. This should be done in a follow up and in sync with potential changes to the registry.
It is planned to move from dataset.* to datastream.*. To make the path easier to 7.9 Elasticsearch (elastic/elasticsearch#60592) and the Elastic Agent already ship with the datastream.* fields. Because of this, these should also be added to the mappings of the packages. The agent will ship datastream.* fields. Because of this, the import scripts can be adjusted to only use these fields. This PR doese not rename any Golang variables. This should be done in a follow up and in sync with potential changes to the registry.
The current Elastic Agent ships data to dataset.*. We plant to rename this field to
datastream.type
,datastream.dataset
,datastream.namespace
instead. To make the template forward compatible, we add these fields to 7.9 and newer.This will need forward porting to 7.x