0

我想将一些 nginx 日志从 fluentd 发送到 elasticsearch ,但是,由于以下错误消息,fluentd 无法启动:

客户端无法验证服务器是否为 Elasticsearch。如果服务器正在运行不受支持的产品,某些功能可能不兼容。

[error]: #0 unexpected error error_class=Elasticsearch::UnsupportedProductError error="客户端发现服务器不是Elasticsearch,我们不支持这个未知产品。"

在此处输入图像描述

这是我流利的配置:

<source>
  @type tail  
    <parse>    
      @type nginx 
    </parse>  
  path /tmp/lab4/nginx/access.log  
  pos_file /tmp/lab4/nginx/access.po
  tag nginx.access
</source>

<match nginx.**>
 @type elasticsearch
 scheme http
 host 192.168.1.154 
 port 9200 
 with_transporter_log true
 @log_level debug
</match>

如果我执行 curl http://192.168.1.154:9200,我可以看到来自 Elasticsearch 的系统版本和其他信息的响应。

作为参考,我正在使用:

  • 流利版 1.14.5
  • 流利的弹性搜索插件 5.2.0
  • 弹性搜索 7.12.0

知道我做错了什么吗?

4

0 回答 0