[libbeat] Add bootstrap check for yaml config settings #36814
Labels
enhancement
Filebeat
Filebeat
libbeat
needs_team
Indicates that the issue/PR needs a Team:* label
Stalled
Describe the enhancement:
The Beats should either fail to start and/or log error messages when unrecognized settings are used in the Beats yaml files.
Describe a specific use case for the enhancement or feature:
For example, Elasticsearch 8.7.0 (as it was what I already had downloaded), does the following if a setting of
foo: bar
was added to the yaml file:which was likely added as part of elastic/elasticsearch#20951.
However, I repeated the same steps with Filebeat 8.8.1 (as it is what I had already downloaded), nothing was mentioned regarding the setting
Although the example is over simplified, this is a problem because the lack of "allow list" validation for settings increases the time required for troubleshooting and validation of configuration files during upgrades. Some examples of the challenges this creates includes:
{type}beat.reference.yaml
file and the documentation pages. This would be much more efficient for the computer program to do this work instead of manually by a human.Note: This same problem may apply to Elastic Agent and Fleet policy set-up in Kibana. I just didn't check these nor open tickets for it.
The text was updated successfully, but these errors were encountered: