-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Add package information to _meta
on Elasticsearch assets
#111737
Comments
Pinging @elastic/fleet (Team:Fleet) |
I had mistakenly assumed that the fields in _meta on index templates, etc. were being supplied by the package installation code in Kibana, however it seems they’re coming directly from packages since Kibana does not modify the assets currently. Can anyone anticipate any problems with populating this data from Kibana rather than from the packages? cc @ruflin @mtojek |
The Fleet code builds the index template and component templates out of the fields.yml. So I also assume the meta info is added by Fleet. What do I miss here? In any case, agree that Fleet should add the data. |
Hi @joshdover Please find our observations below: Could you please confirm above results? Thanks |
Hi @joshdover While performing testing on related PR at 8.0 snapshot build, we have observed following :
However, we have observed that _meta field with managed fields was available for endpoint ILM policies too. We have validated that, APM policy includes all fields. However, Fleet default policy did not included all fields like managed and managed by. Could you please confirm if it is expected. Please let us know if we are missing anything to validate here. Thanks |
@dikshachauhan-qasource Apologies for the confusing issue description. The screenshots you share show the functionality that I expect. All objects we install should have these meta properties. You did catch the |
Hi @joshdover Thanks for the feedback. We have validated the above mentioned templates on 8.0 snapshot build and found only one as working fine. Screenshots: For the Further, we have created below test case for same: Please review and let us know if we are missing anything else to mention in it. Thanks |
@dikshachauhan-qasource Looks great, thanks. |
Ingest assets installed into Elasticsearch by Fleet do not all contain information about the package that was installed. We should add this to be sure that all assets are displayed as managed and are tied to the appropriate package that created them.
managed
managed_by
_meta
to policies from packages, only to the default Fleet policy_meta
to policies from packages, only to the default Fleet policy_meta
field on transforms elasticsearch#77506Adding
package.version
We don't have any current plans to leverage this field for upgrades, but it potentially may be useful for rollbacks or general bookkeeping and debugging. In theory, we should tell Elasticsearch to install all objects but as seen in #110500, there are some performance challenges we need to solve for this. By adding the version information, we may be able to optimize this from the Kibana side in the meantime.
Decision: for now let's not do this
The text was updated successfully, but these errors were encountered: