JustAGuy
JustAGuy

Reputation: 5941

Forwarding Logstash requests to Elasticsearch with user\pass

/opt/logstash/bin/logstash -e 'input { stdin {} } output { elasticsearch { hosts => ["localhost:9200"] } }'

This returns 401 access denied as I have credentials turned on. I'm having a bit of a trouble adding credentials to this line. Would appreciate the help.

Upvotes: 0

Views: 27

Answers (1)

JustAGuy
JustAGuy

Reputation: 5941

/opt/logstash/bin/logstash -e 'input {  stdin {} } output { elasticsearch { hosts => ["localhost:9200"] user => YOURUSERNAME password => YOURPASSWORD } }'

Now it works.

Upvotes: 1

Related Questions