2017-01-05 110 views
0

所以我一直在寻找解决这个问题的方法整天。 但我得到的只是旧版本的elasticsearch。 fyi,我使用最新版本的elk堆栈。elasticsearch的未知设置“协议”5.1.1

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

这是我的Apache的conf:

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

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

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

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

但是当我运行logstash,与:

​​

我得到这个错误信息。

enter image description here

这个信息告诉我,什么毛病我的配置。 http协议是不存在了,我猜。

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

非常感谢返回

回答

1

有一个在elasticsearch输出没有设置了。只需将您的输出修改为:

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

谢谢兄弟。 – gutasaputra