-
Notifications
You must be signed in to change notification settings - Fork 68
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
[EPM] [Endpoint] Disable dynamic mapping on a template #497
Comments
I'm wondering if we should introduce a |
What would happen if multiple dataset manifest files defined the same If the hope is that datasets should not be merged, then having the |
TBH I'm not sure what would happen. But now that you mention it I think if someone tries to do it, the registry should complain and tell the user the package is not valid. |
To put out a specific proposal, I'm thinking of supporting the following in the dataset manifest:
On the Kibana side, it would read the template settings in and either merge it with the existing template or probably even better, creates a third component with these in, so we leave it up to Elasticsearch to merge it correctly. @skh @neptunian Would that work? If yes, we need to find a name for this component. @ycombinator I assume the above would also solve your ILM issue? |
Yes, this should do it for letting the Stack Monitoring datasets set a custom default ILM policy. Thanks! |
I filed #552 as a follow up, please have a look. |
Closing this as #552 was merged. @jonathan-buttner I assume you follow up on the Kibana side. |
@ruflin @jonathan-buttner Sorry I didn't get a chance to look at this closer sooner. Wondering if there was a particular reason (I saw there was some conversation here) we decided to build component templates based on a manifest file instead of having component template files that act as assets similar to how we handled the base package component templates? . We already have a function that checks for the existence of component templates and installs them. We just need to put the component templates in the dataset directory (and maybe a few other tweaks). I think it's preferable to keep the assets in json files that we load through the asset paths we get back from the registry to keep it as consistent as possible with how we install other assets. In the Kibana implementation, It seems that the component templates assets created are not being tracked as part of the installation of assets in the saved object, which means when the package is removed, all the component templates will not be removed. We didn't track initially because only the base package had these which were not removable. Will open an issue for this. If the manifest file is the best way to go, I can remove the functionality that handles installing components in the |
Oops yeah, I completely forgot about that.
hmm I keeping them as json files would work just as well. We'd have to make sure they were parsed before the |
@ruflin Same goes for the ILM policy. We have a function that installs ILM policies based on paths. |
@neptunian Good question. It all started with just configuring the ILM policy so I thought the manifest is an easy place to specify it. And for the mapping the initial problem was that fields.yml does not support the global setting. But you are correct, we could also use and load a json/yaml object instead. In any case, we need to track the assets we install. One reason I keep coming back for the ILM policy to specify it in the manifest is that I think it is also someone could specify when building a package in Kibana in the future. Just writing it into a manifest sounds simpler than building a template for it, but both will work. And we don't support building packages in Kibana yet :-) In summary, I think you are right that we could have solve the above with existing features :-( |
The endpoint team would like to disable dynamic mappings for all the endpoint indices. The easiest way to do this I think is to disable it at the template level that is generated by the ingest manager.
See this ticket for more detail: elastic/kibana#68380
The text was updated successfully, but these errors were encountered: