This seems to also be a problem for these people Error trying to setup filebeat because the error response structure for a visualization is actually more like kibana/types.ts at v7.11.1 · elastic/kibana · GitHub when you run filebeats setup for the first time and the error message doesn't match with what is looked for in the code.
Is there no desire to fix this because it is legacy code? Can the machine learning option for filebeat setup at least be disabled by default?
I'm using version 7.11.1 of Elastic. So, like Elasticsearch 7.11.1, Kibana 7.11.1, and Filebeat 7.11.1. I'm using the container images.