-
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
Beats started by agent do not respect the allow_older_versions: true configuration flag #34227
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Elastic Agent itself also has checks to ensure that the version of Fleet Server is greater than the Elastic Agent. Do we really want to allow the beats to talk to an older version of elasticsearch? |
Yes Fleet agents can't even be enrolled in this setup. The Beats themselves can currently be configured to do this, so this is a blocker for some people to switch to a standalone agent instead. This was originally reported by some of our Solution architects working with users trying to do exactly this. |
I am facing a similar issue when trying to set up Agent for some benchmark experiments I am doing. |
This commit is a hacky quick fix to allow Beats connecting to older versions of Elasticsearch. Currently Beats running under Elastic-Agent do not respect `allow_older_versions`. Issue: elastic#34227
A monkey patch to unblock @alexsapran: https://github.com/belimawr/beats/tree/allow-older-verisons-hardcoded |
Beats started by agent do not respect the
allow_older_versions: true
flag added to the output configuration. Beats by default will not connect to older versions of Elasticsearch, unlessallow_older_versions: true
appears in the output configuration.Fleet managed agents will also refuse to enroll with older versions of Elasticsearch, but it is possible to configure a standalone agent to write to an older version. In this case the agent will run but the Beats will refuse to connect with the following error:
Setting
allow_older_versions: true
in the output section of the agent policy should resolve this but it does not. This may be because the flag isn't available on this code path when the callback is first registered:beats/libbeat/cmd/instance/beat.go
Lines 910 to 939 in b2a1310
To reproduce this:
allow_older_versions: true
flag set on the output. For example:allow_older_versions: true
flag is configured on the generated Beat configuration in thecomponents
directory of the elastic agent diagnostics bundle. Example:For example configuring
The text was updated successfully, but these errors were encountered: