弹性搜索 5.1.1 的未知设置 'protocol'
Unknown setting 'protocol' for elasticsearch 5.1.1
所以我整天都在寻找解决这个问题的方法。
但我所拥有的只是旧版本的 elasticsearch。
仅供参考,我使用的是最新版本的elk stack。
- 弹性搜索版本: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 时,使用 :
logstash -f apache.conf
我收到这条错误消息。
该消息告诉我我的配置有问题。
我猜 http 协议已经不存在了。
你能告诉我如何解决吗?
非常感谢return
elasticsearch
输出中不再有 protocol
设置。只需将您的输出修改为:
output {
elasticsearch {
hosts => "localhost:9200"
}
}
所以我整天都在寻找解决这个问题的方法。 但我所拥有的只是旧版本的 elasticsearch。 仅供参考,我使用的是最新版本的elk stack。
- 弹性搜索版本: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 时,使用 :
logstash -f apache.conf
我收到这条错误消息。
该消息告诉我我的配置有问题。 我猜 http 协议已经不存在了。
你能告诉我如何解决吗?
非常感谢return
elasticsearch
输出中不再有 protocol
设置。只需将您的输出修改为:
output {
elasticsearch {
hosts => "localhost:9200"
}
}