When elastic X-PACK is enabled logstash can't connect to elasticsearch

(andy_zhou) #1

when elastic X-PACK is enabled how logstash can connect to elastic 9200
the logstash can't startup when use ./logstash -f logstash.conf
the confgure file output elasticsearch host xx.xx.xx:9200
the logstash log output error "401" "Got response code 401 contact elasticsearch at url 'http://xx.xx.xx.xx:9200'"

(Magnus B├Ąck) #2

Have you configured Logstash to authenticate to Elasticsearch? The 401 response indicates you haven't, or that you're using the wrong credentials.

(andy_zhou) #3

i find it how to solve it in logstash configure file can add the es user and password
can cloes it .

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.