-
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
Migrate container
input to use filestream
instead of log
input
#34393
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Hey @rdner I see that #34354 was closed in honor of this. Do we have an estimation of when this current issue will be addressed? @elastic/obs-cloudnative-monitoring team is getting requests for supporting
So in that regard I wonder if it would be easier to deal with #34354 directly in case this migration is going to take longer. In a more technical detail I wonder if this migration will take care of the input specifics. For example currently we support the co.elastic.logs/json.* setting which is tightly coupled with the @gizas btw that's quite related to the hints' evaluation work you are doing. |
@ChrsMark it's better to ask @pierrehilbert |
Hey @ChrsMark, |
Thanks for the update @pierrehilbert @rdner! In any case I believe it would be safer to "fix" hints at first place at #34354. As I mentioned at #34393 (comment) some hints are input specific so I expect that we need to revisit the logic in any case there. |
Created #35984 to specify next steps here |
Describe the enhancement:
The
log
input is deprecated and the goal is to unbind the rest of the codebase from it, so we can easily remove it in a future major version. Currently, thecontainer
input just wraps thelog
input and introduces some additional behaviour.beats/filebeat/input/container/input.go
Lines 38 to 75 in 50dad3d
It might be as easy as replacing the input configuration (in-memory) with a
filestream
preset made for container logs. Sort of an in-memory integration.Some things to be aware of:
After introducing the
take_over
mode in Add thetake_over
mode for filestream inputs #34292 it should be possible to migrate the persisted state (registry). However, we need to account for what's described in 2.The
container
input introduces a new meta data valuestream
into the persisted state. We need to propagate this value into the filestream state and make sure it's present in the output (as it does for thecontainer
input.log
input andfilestream
are implemented using 2 different plugin systems:beats/filebeat/input/log/input.go
Lines 60 to 65 in 50dad3d
versus
beats/filebeat/input/filestream/input.go
Lines 67 to 81 in 50dad3d
so,
filestream
cannot be a drop-in replacement for thelog
input code in thecontainer
implementation.The text was updated successfully, but these errors were encountered: