【问题标题】:Unknown setting 'protocol' for elasticsearch 5.1.1elasticsearch 5.1.1 的未知设置“协议”
【发布时间】:2017-05-19 17:00:54
【问题描述】:

所以我整天都在寻找解决这个问题的方法。 但我所拥有的只是旧版本的弹性搜索。 仅供参考,我使用的是最新版本的 elk stack。

  • elasticsearch 版本:5.1.1
  • kibana 版本:5.1.1
  • logstash 版本:5.1.1

这是我的 apache 配置文件:

input {
    file {
        path => '/Applications/XAMPP/xamppfiles/logs/access_log'
    }
}

filter {
    grok {
        match => { "message" => "%{COMBINEDAPACHELOG}" }
    }
}

output {
     elasticsearch { protocol => "http" }
}

该文件用于从 apache 访问日志数据。

但是当我运行logstash时,使用:

logstash -f apache.conf

我收到此错误消息。

该消息告诉我我的配置有问题。 我猜http协议已经不存在了。

你能告诉我如何解决它吗?

非常感谢回复

【问题讨论】:

    标签: elasticsearch logstash logstash-grok


    【解决方案1】:

    elasticsearch 输出中不再有 protocol 设置。只需将您的输出修改为:

    output {
        elasticsearch { 
           hosts => "localhost:9200" 
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2018-01-14
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 2011-11-22
      • 2021-07-29
      • 2018-12-05
      • 1970-01-01
      相关资源
      最近更新 更多