error=>"Got response code '401' contacting Elasticsearch at URL 'http://localhost:9200/'"}
Logstash | 作者 taowenrui | 发布于2017年09月11日 | 阅读数:19721
在同一台服务器上,安装了filebeat,logstash,elasticsearch,kibana,x-pack插件,elasticsearch只安装了一个,在elasticsearch还没有安装x-pack插件的时候当导入tomcat的日志,在elasticsearch是可以查询到的,logstash也没有报错,当elasticsearch安装x-pack后,logstash就出现链接elasticsearch 报401错误,求大神帮忙?
7 个回复
taowenrui
赞同来自: shitangjiejie 、lightyarn
xinfanwang
赞同来自:
`
elasticsearch.username: "elastic"
elasticsearch.password: "changeme"
`
taowenrui
赞同来自:
Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2017-09-11T11:49:46,780][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://localhost:9200/'"}
xinfanwang
赞同来自:
taowenrui
赞同来自:
这个是logstash输出配置,我也是初次搭建es,是不是logstash也需要安装x-pack?我在x-pack中看到logstash的文件,不过现在只再elasticsearch,kibana中安装了x-pack,请问有没有可靠的es安装文档呢?非常感谢
xinfanwang
赞同来自:
xinfanwang
赞同来自: