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

Manage fleet server indices as system indices in the Elastic Stack #135

Closed
scunningham opened this issue Mar 16, 2021 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@scunningham
Copy link

Describe the enhancement:

Fleet Server relies on a set of indices to store operational data about Fleet. These indices must be created early in the system lifecycle. Currently the indices are instantiated in Kibana. This enhancement will move the instantiation to the Elastic Stack where the fleet indices will be treated as managed system indices. Moving forward, updates and migrations of these indices will be managed by the system indices plugins.

Describe a specific use case for the enhancement or feature:

We 7 indices we are dependent on, and one data stream with an ILM policy:

Indices

.fleet-actions
.fleet-agents
.fleet-enrollment-api-keys
.fleet-policies
.fleet-policies-leader
.fleet-servers
.fleet-artifacts

DataStream

.fleet-actions-results and ILM policy for the data stream.

Note: The indices creation had moved over to Kibana, however the data stream was still being created via package management. That was an oversight.

Known issues

  • The indices/datastreams are not instantiated in the system indices plugin until the first document is written to them. The code in Kibana does not currently expect that. Is there a way to "touch" each of the indices at Kibana boot so we don't have to fix the reads of indices in Kibana to handle the "does not yet exist" case?
  • System Indices does not yet support the concept of a system managed ILM policy. So the ILM policy for .fleet-action-results will likely remain in the package, or have to put into Kibana. Question on race condition: what happens if the package is installed before the data stream is instantiated? Does trying to add an ILM policy to a system managed data stream cause it to be created?

@jaymode will do the initial implementation in the Elastic Stack for this integration. Moving forward, the Fleet Team will pick up maintenance. This is expected to land for 7.13.

@scunningham scunningham added the enhancement New feature or request label Mar 16, 2021
@ruflin ruflin mentioned this issue Mar 17, 2021
20 tasks
@jaymode
Copy link
Member

jaymode commented Mar 22, 2021

I've opened elastic/elasticsearch#70689 for the indices and will follow-up on the data stream.

@ruflin
Copy link
Contributor

ruflin commented Apr 19, 2021

Here is the related PR for data streams: elastic/elasticsearch#71667

@ruflin
Copy link
Contributor

ruflin commented Apr 21, 2021

@scunningham @jaymode Going to close this as I think all changes landed. Can you confirm?

@ruflin ruflin closed this as completed Apr 21, 2021
@scunningham
Copy link
Author

Landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants