basic auth scheme failure
maxisam opened this issue ยท 4 comments
Our ELK setup is like using a reverse proxy to handle all in coming traffic to ElasticSearch endpoint.
And it requires a basic authentication
The request from logger for RestClient is like http://username:password@192.168.56.120/elasticsearch:80
and it shows an error like
java.net.UnknownHostException: username:password@192.168.56.120/elasticsearch: invalid IPv6 address
Thanks!
Hey @maxisam,
So it's the reverse proxy that requires Basic authentication? That might be a tough one. The plugin already supports Basic Authentication to the ElasticSearch engine, but that really wouldn't solve your problem as basically your authentication problem is due to a middleman.
I'm not sure that it's in the scope of this plugin to solve this issue. What you could try though, would be to specify your host as being username:password@192.158.56.120
and your port being as 80
. This way, the plugin would generate the request as being http://username:password@192.168.56.120/elasticsearch:80
. This might just work.
(Don't forget to replace your username/password by their actual values ๐ )
Thanks,
that was what I tried and it doesn't work. anyway Thx!
Sorry I couldn't be of much help.. Best of luck!