这个问题的错误信息告诉我们连接Elasticsearch失败,因为它太旧了。您需要将Filebeat配置文件中的output.elasticsearch.allow_older_versions
设置为true
,以允许连接到旧版本的Elasticsearch。
在您的Filebeat配置文件中添加以下内容:
output.elasticsearch:
allow_older_versions: true
hosts: ["192.168.0.67:9201"]
然后重新启动Filebeat并再次尝试连接到Elasticsearch。注意,此选项可能会降低安全性,并且仅应用于连接到较旧版本的Elasticsearch时使用。如果您能够升级Elasticsearch实例,则不建议使用此选项。