Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kibana container to elasticsearch cloud auth err

I have a production instance of elasticsearch 5.6.9 deployed on elastic.cloud.

WIth an http elastic all is OK but I would run a localhost kibana connected to that https instance!

I have tried:

docker run --name kibana-prod-user 
     -e ELASTICSEARCH_URL=https://####.eu-west-1.aws.found.io:9243 
     -e ELASTICSEARCH_PASSWORD=#### 
     -v /host/workspace/cert:/usr/share/elasticsearch/config/certificates 
     -p 3501:5601 --b kibana

but i get:

auth err

In my mount dir I have put the cert.cer of elastic cloud.

Any ideas?

Thank you very much

like image 946
Manuel Spigolon Avatar asked Jun 29 '18 16:06

Manuel Spigolon


1 Answers

I have find the solution, after understand that the error wasn't a certificate problem.

The right script for kibana 5.6.10 is:

docker run --name kibana-prod-provider -v "$(pwd)":/etc/kibana/ -p 3502:5601 --rm kibana

because the ELASTICSEARCH_PASSWORD envvar is not managed by the docker file, only le URL is.

Then in the $(pwd) directory I have put this kibana.yml file:

server.host: '0'
elasticsearch.url: 'https://###.eu-west-1.aws.found.io:9243'
elasticsearch.username: elastic
elasticsearch.password: ###
like image 163
Manuel Spigolon Avatar answered Nov 02 '22 01:11

Manuel Spigolon