尝试恢复到死ES示例的连接,但收到错误{:url=〉”http://provider:xxxxxx@192.168.15.29:9200/“,:exception=〉LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError,:message=〉“Got response code '401' contacting Elasticsearch at URL 'http://192.168.15.29:9200/'”}
Logstash URL不起作用。我正在尝试将数据从mongoDB传输到elastic。为此,logstash URL应该起作用。有人能帮忙吗
1条答案
按热度按时间klr1opcd1#
Elasticsearch中的HTTP 401错误码表示用户没有被授权访问请求的资源。
您正在使用提供程序用户。确保用户具有写入权限。
你可以用curl来测试:
使用超级用户测试(弹性):
或
如果你不记得密码你可以重置elastic user password .