Skip to content
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] Migrate Agents from saved object to fleet server indices #87372

Closed
16 tasks done
nchaulet opened this issue Jan 5, 2021 · 8 comments
Closed
16 tasks done

[Fleet] Migrate Agents from saved object to fleet server indices #87372

nchaulet opened this issue Jan 5, 2021 · 8 comments
Assignees
Labels
Team:Fleet Team label for Observability Data Collection Fleet team v7.13.0

Comments

@nchaulet
Copy link
Member

nchaulet commented Jan 5, 2021

Description

In the effort of moving the Elastic Agent call from Kibana to Fleet Server, we need to stop reading and writing from kibana saved object and use fleet server system indices instead

Prerequiste to complete the migration:

  • the kibana system will need to have the permission to read and write to the .fleet-* indices
  • ES will need to create the fleet system indices

First step

While we do not have the correct permission and the system indices we can start to work on the migration, by using a custom kibana system user, and a feature flag.
Introduce a feature flag to start using fleet server indice xpack.fleet.agents.fleetServerEnabled: true
If this flag is enabled we will use a different service that read and write for .fleet-* instead of saved object.

Migration

During the plugin start we will transform all of the existing saved object to .fleet-* document, I discussed this kibana platform and it should work for us.

That draft PR show what it will look like #86179

  • Kibana should create the indices.

Saved object call that should be migrated:

Second step

@nchaulet nchaulet added Team:Fleet Team label for Observability Data Collection Fleet team v7.12.0 labels Jan 5, 2021
@nchaulet nchaulet self-assigned this Jan 5, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@ruflin
Copy link
Member

ruflin commented Jan 6, 2021

Does Kibana need access to all .fleet-* indices or only a subset?

@ruflin
Copy link
Member

ruflin commented Jan 6, 2021

@aleksmaus I think this is part of what we talked about yesterday. @nchaulet As soon as it is ready / testable best ping Aleks so he can test it.

@nchaulet
Copy link
Member Author

nchaulet commented Jan 6, 2021

Does Kibana need access to all .fleet-* indices or only a subset?

Probably all of .fleet-* indicies especially if we want to support the migration

@mostlyjason
Copy link
Contributor

I added this issue to track migration to fleet server from a UX perspective #90156

@simitt
Copy link
Contributor

simitt commented Feb 4, 2021

Please keep @elastic/apm-server in the loop about when a switch to Fleet Server is recommended or even required. We have CI and dockerized dev setup which are relying on current Elastic Agent/Fleet enrollment. (elastic/apm-server#4650 and https://github.com/elastic/apm-integration-testing/blob/master/docker/apm-server/managed/main.go).

@ruflin
Copy link
Member

ruflin commented Apr 21, 2021

@nchaulet As anything still pending here?

@nchaulet
Copy link
Member Author

No everything is done here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team v7.13.0
Projects
None yet
Development

No branches or pull requests

5 participants