Skip to content

beats: take over the read positions of the old log inputs - #561

Merged
Saeid-Abadi merged 1 commit into
mainfrom
feature/beats-filestream-take-over
Oct 19, 2026
Merged

Saeid-Abadi merged 1 commit into
mainfrom
feature/beats-filestream-take-over

Conversation

@Saeid-Abadi

Copy link
Copy Markdown
Contributor

The role switched the inputs from beats_filebeat_log_inputs and the MySQL slow log from log to filestream. Filestream does not use the read positions of the log inputs, so every host upgraded from an older version reads all configured files again from the beginning and ships their content a second time.

beats_filebeat_take_over sets take_over on these inputs, so Filebeat continues where the log inputs stopped. Take over mode needs the same paths as the old inputs and the log inputs removed, which the role already does since it renders both from the same variables. The option defaults to false because take over mode is beta in Filebeat 8.19 and only matters once, during the upgrade. take_over: true is accepted in 8.19 and 9.0 and still supported in 9.1, which added take_over.enabled.

https://www.elastic.co/docs/reference/beats/filebeat/migrate-to-filestream https://www.elastic.co/docs/reference/beats/filebeat/filebeat-input-filestream

The role switched the inputs from beats_filebeat_log_inputs and the
MySQL slow log from log to filestream. Filestream does not use the read
positions of the log inputs, so every host upgraded from an older
version reads all configured files again from the beginning and ships
their content a second time.

beats_filebeat_take_over sets take_over on these inputs, so Filebeat
continues where the log inputs stopped. Take over mode needs the same
paths as the old inputs and the log inputs removed, which the role
already does since it renders both from the same variables. The option
defaults to false because take over mode is beta in Filebeat 8.19 and
only matters once, during the upgrade. take_over: true is accepted in
8.19 and 9.0 and still supported in 9.1, which added take_over.enabled.

https://www.elastic.co/docs/reference/beats/filebeat/migrate-to-filestream
https://www.elastic.co/docs/reference/beats/filebeat/filebeat-input-filestream
@afeefghannam89 afeefghannam89 added this to the 1.0.0 milestone Oct 19, 2026

@afeefghannam89 afeefghannam89 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much :)

@Saeid-Abadi
Saeid-Abadi merged commit 4df9cab into main Oct 19, 2026
10 checks passed
@Saeid-Abadi
Saeid-Abadi deleted the feature/beats-filestream-take-over branch October 19, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants