[2022-02-09T16:22:36,652][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://11.11.12.12:9211/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://11.11.12.12:9211/'"}
[2022-02-09T16:22:38,909][WARN ][filewatch.tailmode.handlers.createinitial][main][21bb5051658f1af1378fa6e38baa09d0cf3ad7d12133847f447875c3dd213c13] failed to open file {:path=>"/data/HOST_20220204012618_20220204012719_002000023.txt", :exception=>Errno::EMFILE, :message=>"Too many open files - Too many open files"}
[2021-04-11T10:45:34,991][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://192.168.10.233:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://192.168.10.233:9200/'"}
原因: logstash的conf文件没有配置ES的账号密码, 配置上账号密码即可
文章来源:https://www.toymoban.com/news/detail-644012.html
文章来源地址https://www.toymoban.com/news/detail-644012.html
到了这里,关于Logstash启动报错:401的问题解决的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!