-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Fleet] Alternative Index pattern in ES templates #88307
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@jalvz Is it |
The |
I kind of like the idea of the |
@skh Can you point me to the code? I would expect it to be a few lines of changes is that the case? |
Possibly, but the lines are probably not trivial. I don't think we parse the datastream manifest at this point, and we'll need to in order to decide which pattern to use. |
Thanks, @skh, I thought that the surface area was limited and could have been done by another team with a little guidance. But like you have said in slack if it's a few hours. It's probably less problematic. |
Minor correction: we don't need to add manifest parsing but we do need elastic/package-registry#674 . |
I have opened a draft PR at #89870, but I ran into an issue that needs further specification (copied from the PR description): If the package contains, at the same time e.g. a data stream with this manifest:
and another one with this manifest
the first data stream will use
So if the data stream containing If this is not meant to happen, maybe we need to add some package validation so that this situation can't arise. |
@jalvz I would assume in the actual APM package, this conflict should not happen? In any case, we still need to resolve it. My suggestion would be to change priority on the dataset_is_prefix. I think |
For the built-in index templates we use priority
The templates we currently generate in EPM have priority |
This should be fixed in APM from next version on (elastic/apm-server#4669), we don't need to change priorities. |
@skh 150 sounds like a good pick. Good point about the "conflicting" messaging for 200. Lets follow up on this separately. Either we should update ES docs or adjust our priority. |
|
When installing integrations, Fleet creates templates with index patterns following the indexing strategy:
<type>-<dataset>-*
In the APM package, the datasets defined are only a prefix, and a service name will be appended during runtime. We therefore need that the APM templates are created with matching index patterns, like
<type>-<dataset>*-*
Fleet should know whether to create templates with this alternative index pattern based on the
dataset_is_prefix
boolean field in the data stream manifest file.Spec PR: elastic/package-spec#102
The text was updated successfully, but these errors were encountered: