-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Allow changing filestream IDs without duplication by providing the previous ID values #42472
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Thinking about it, it looks reasonable to implement this logic. Recently I merged a PR that migrates the state from one file identity to another, which effectively is copying a registry entry into a new one with a different ID. Migrating the input ID is the same thing. The code for that is here: beats/filebeat/input/filestream/prospector.go Lines 134 to 198 in 7eb2bdd
On a brief analysis it looks pretty reasonable to do, specially because we already have a similar feature. |
I'd love a quick-and-dirty POC before we commit with this feature. There will be two changes to the "same" registry entry in 9.0 if we implement this feature, I'd love to explore corner cases and possible weird interactions. |
Describe the enhancement:
This relates to the discussion in elastic/elastic-agent#6583 (comment) where we believe we should change the default container input ID. We need a way to do this without duplicating data when this happens. One way to solve this is to simply tell the filestream input what ID it should take over from.
Describe a specific use case for the enhancement or feature:
Provide a way to list previous filestream input IDs such that it will start from where it left off even if the ID changes. For example:
The text was updated successfully, but these errors were encountered: