-
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
take_over: true
is ignored when using input configuration from external files
#36378
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
filebeat 8.15.0. problem returned |
I confirm: 8.15.0 problem exists. using filebeat in the container. |
@rdner - can this one be reopened please ? |
@fixed77 @nix-power do you mean your use-case worked before 8.15.0 and with the 8.15.0 release it broke again? I don't recall any change in 8.15.0 that could affect this functionality. Can you post an example of your configuration files that can verify the bug is back? Thanks in advance. |
Hi, thanks for the reply.
filebeat is running in the docker container, and the configuration file |
filebeat 8.15.0 filebeat.yml:
inputs.d/nginx.yml
let's try switching to filestream. change inputs.d/nginx.yml to:
and restart filebeat. if all input files move to the main filebeat.yml config, then everything goes well |
@nix-power it does not seem like the issue is related to applying @fixed77 it does match the description of the original issue, I'm re-opening this to investigate further. |
If inputs are set via the external file configuration using: https://www.elastic.co/guide/en/beats/filebeat/8.9/filebeat-configuration-reloading.html#load-input-config the
take_over
parameter is ignored and log inputs won't migrate to filestream causing data duplication and reset offsets for each affected file.This happens because the take-over configuration is initialised only from the
filebeat.inputs
section and does not take into account external files:beats/filebeat/input/filestream/takeover/takeover.go
Lines 144 to 171 in eca0a0b
The text was updated successfully, but these errors were encountered: