我想通过http:// IP:80访问Kibana 。但是,当我访问该页面时,我得到了以下错误:
需要升级您的Elasticsearch版本太旧。Kibana要求Elasticsearch 0.90.9或更高。
和
错误无法到达http:// localhost:80 / _nodes。如果您使用的是代理,请确保已正确配置
我一直在互联网上查找这些问题,并且将这些行包括在内而没有成功...
http.cors.enabled: true
http.cors.allow-origin: http://localhost:80
我的Elasticsearch版本实际上是0.90.9。
我能做什么?请帮我
根据我的情况,默认情况下Logstash使用节点协议。如果您应用命令:
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
如果您"number_of_nodes" : 2,
使用节点协议获得logstash并成为集群.so 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。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句