I am having running elastic-search on my Kubernetes cluster with host http://192.168.18.35:31200/
. Now I have to connect my elastic search to the kibana. For that an enrollment token needs to be generated but how?
When I login to the root directory of elastic-search from kibana dashboard and type the following command to generate a new enrollment token, it shows the error:
command : bin/elasticsearch-create-enrollment-token --scope kibana
error: bash: bin/elasticsearch-create-enrollment-token: No such file or directory
I have created a file elasticsearch-create-enrollment-token inside the bin directory and gave full permission. Still, no tokens are generated. Have any ideas on enrollment token guys?
If you're running on Docker Desktop, say on MacOS:
Click to open the running ElasticSearch Docker instance.
Open the Terminal tab on the Docker Desktop and run the following command:
bin/elasticsearch-create-enrollment-token -s kibana
Note: The token is only valid for 30mins.
Get more info from the docs: Create Enrolment Token