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

Add support for basic auth to elasticsearch plugins #5967

Closed
florent26 opened this issue Jun 7, 2019 · 5 comments · Fixed by #6122
Closed

Add support for basic auth to elasticsearch plugins #5967

florent26 opened this issue Jun 7, 2019 · 5 comments · Fixed by #6122
Assignees
Labels
area/elasticsearch feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@florent26
Copy link

Hi,
Is it possible to add http auth params on the elasticsearch plugin ?
For example it doesn't work when Xpack Security is enable.

Thanks,

@danielnelson danielnelson changed the title http auth Add support for basic auth to elasticsearch plugins Jun 7, 2019
@danielnelson danielnelson added area/elasticsearch feature request Requests for new plugin and for new features to existing plugins labels Jun 7, 2019
@florent26
Copy link
Author

I have tried in /etc/telegraf/telegraf.d :

servers = ["http://elastic:XXXXXX@10.24.0.15:9200"]

But it doesn't work.

@florent26
Copy link
Author

Sorry, finally it works with http://USERNAME:PASS@.....

@florent26
Copy link
Author

Maybe you just can update the readme ?
Thanks

@danielnelson
Copy link
Contributor

I think we should add support for HTTP Basic auth which uses the Authentication header instead of the userinfo section of the URL. The reason being that the URL can be printed in a number of circumstances, and many don't want to log credentials. I can add this if you could help test it out, are you working with the Elasticsearch input or output?

@glinton glinton modified the milestones: 1.11.2, 1.12.0 Jul 5, 2019
@glinton glinton self-assigned this Jul 5, 2019
@xiaoyanghapi
Copy link

I also want to ask this qustion、
我也想问这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/elasticsearch feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants