Kibana 和 Elasticsearch 错误
Kibana and Elasticsearch error
我想通过 http://IP:80 访问 Kibana。
然而,当我访问该页面时,我收到了这些错误:
Upgrade Required Your version of Elasticsearch is too old. Kibana
requires Elasticsearch 0.90.9 or above.
和
Error Could not reach http://localhost:80/_nodes. If you are using a
proxy, ensure it is configured correctly
我一直在互联网上查找这些问题,但我没有成功地包含这些行...
http.cors.enabled: true
http.cors.allow-origin: http://localhost:80
我的 Elasticsearch 版本实际上是 0.90.9。
我能做什么?
请帮助我
下载 elasticsearch 高级版本,因为您使用的版本与 Kibana 不兼容。尝试使用最新的 elasticsearch 版本。
根据我的场景,Logstash 默认使用节点协议。如果您应用命令:
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
如果你得到 "number_of_nodes" : 2,
意味着 logstash 使用节点协议并成为集群的一部分。所以 kibana 将它带到旧版本 elasticsearch 中的另一个节点。
解决方案 :
将 protocol => transport
放入 logstash 配置文件以发送到 ES。
喜欢,
input { }
output {
elasticsearch {
action => ... # string (optional), default: "index"
embedded_http_port => ... # string (optional), default: "9200-9300"
index => ... # string (optional), default: "logstash-%{+YYYY.MM.dd}"
node_name => ... # string (optional)
port => ... # string (optional)
protocol => ... # string, one of ["node", "transport", "http"]
}
如果你想在端口 80 上访问,则必须执行代理。否则 kibana 默认监听 5601。如果您仍然面临同样的问题,请使用最新版本的 logstash + kibana +elasticsearch 。
我想通过 http://IP:80 访问 Kibana。 然而,当我访问该页面时,我收到了这些错误:
Upgrade Required Your version of Elasticsearch is too old. Kibana requires Elasticsearch 0.90.9 or above.
和
Error Could not reach http://localhost:80/_nodes. If you are using a proxy, ensure it is configured correctly
我一直在互联网上查找这些问题,但我没有成功地包含这些行...
http.cors.enabled: true
http.cors.allow-origin: http://localhost:80
我的 Elasticsearch 版本实际上是 0.90.9。
我能做什么? 请帮助我
下载 elasticsearch 高级版本,因为您使用的版本与 Kibana 不兼容。尝试使用最新的 elasticsearch 版本。
根据我的场景,Logstash 默认使用节点协议。如果您应用命令:
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
如果你得到 "number_of_nodes" : 2,
意味着 logstash 使用节点协议并成为集群的一部分。所以 kibana 将它带到旧版本 elasticsearch 中的另一个节点。
解决方案 :
将 protocol => transport
放入 logstash 配置文件以发送到 ES。
喜欢,
input { }
output {
elasticsearch {
action => ... # string (optional), default: "index"
embedded_http_port => ... # string (optional), default: "9200-9300"
index => ... # string (optional), default: "logstash-%{+YYYY.MM.dd}"
node_name => ... # string (optional)
port => ... # string (optional)
protocol => ... # string, one of ["node", "transport", "http"]
}
如果你想在端口 80 上访问,则必须执行代理。否则 kibana 默认监听 5601。如果您仍然面临同样的问题,请使用最新版本的 logstash + kibana +elasticsearch 。