Yeah...no worries... its weekend.... i will take a look see what I can figure out
Have a good weekend... maybe I will have something for you...
good / bad I seem to be seeing same thing....
EDIT : Found it ... tricky has to do with the order things are created.....
You bring the components up...
Then you are creating the token...
But by the time you do that Kibana is already up...
You need to delete the Kibana container and then "up" / recreate it again...
Then ENV vars are only read once on startup.
The problem that I see is the ENV vars are read at container creation time, but you don't have the token yet... when you paste in the token after it is not read...
You can see that by running
$ docker inspect kibana you will see the new token is not taken.
OK this worked.... without fancy scripting...
Comment out the whole kibana section in your compose
$ docker compose -f discuss-compose-service-token.yml up
Thank you so much for the follow up @stephenb in the line:
$ Docker compose -f discuss-compose-service-token.yml up
Could you please tell me where do i get the file discuss-compose-service-token.yml ?
Sorry for my late reply, you know a lot of work bro
well, actually my porpouse is to learn about elasticsearch and at the same time with kibana. I must tell you that i already achieve. I just create 2 containers following the documentation and making a small change in the security configuration BUT this time i really took care of data is displayed when ES container is created the first time:
Datos de configuración de seguridad en Elasticsearch:
Elasticsearch security features have been automatically configured! Authentication is enabled and cluster connections are encrypted.
Password for the elastic user (reset with bin/elasticsearch-reset-password -u elastic):
lq67VKk3a5fLRAv3e+5n
HTTP CA certificate SHA-256 fingerprint:
10c9a75c3ab28fed209f3830aed9136b9fc1cb14a9f6fe1bef076198bda56dc4
Configure Kibana to use this cluster:
• Run Kibana and click the configuration link in the terminal when Kibana starts.
• Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):
eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjE5LjAuMjo5MjAwIl0sImZnciI6IjEwYzlhNzVjM2FiMjhmZWQyMDlmMzgzMGFlZDkxMzZiOWZjMWNiMTRhOWY2ZmUxYmVmMDc2MTk4YmRhNTZkYzQiLCJrZXkiOiJVSHlpdlpjQklrTWRCam1DWlBYNDp6NDJ2ZGdGN2tqRDRWLWFxVHhLaG1nIn0=
Configure other nodes to join this cluster:
• Copy the following enrollment token and start new Elasticsearch nodes with bin/elasticsearch --enrollment-token <token> (valid for the next 30 minutes):
eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjE5LjAuMjo5MjAwIl0sImZnciI6IjEwYzlhNzVjM2FiMjhmZWQyMDlmMzgzMGFlZDkxMzZiOWZjMWNiMTRhOWY2ZmUxYmVmMDc2MTk4YmRhNTZkYzQiLCJrZXkiOiJVbnlpdlpjQklrTWRCam1DWlBYLTpTek5BNVhJcnpVVk9obkEybWpiOHlnIn0=
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.