Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch input fails if Shield is enabled - needs to support sending authentication #1189

Closed
rmoff opened this issue May 12, 2016 · 3 comments

Comments

@rmoff
Copy link

rmoff commented May 12, 2016

If Shield is configured on Elasticsearch, all access requires authentication. From what I can see, the Telegraf plugin does not offer this as a configuration option. Without it, requests fail and the plugin cannot be used:

Error in input [elasticsearch]: elasticsearch: API responded with status-code 401, expected 200
@lsthor
Copy link

lsthor commented Dec 9, 2016

Hi, I am facing the same problem too, the temporary solution I found is to include the username and password in the URL, for example, http://username:password@localhost:9200, after I did this I am able to retrieve the stats from the elasticsearch node. Hope this helps.

@sparrc
Copy link
Contributor

sparrc commented Dec 9, 2016

If elasticsearch "shield" is just basic auth then it's already supported, as @lsthor said above.

If anyone wants to take on an easy github fix then please update the documentation and we can close this issue.

@sparrc sparrc added this to the Future Milestone milestone Dec 9, 2016
@sparrc
Copy link
Contributor

sparrc commented Dec 9, 2016

nevermind, this is already done #2065

@sparrc sparrc closed this as completed Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants