Deploy ELK on AlmaLinux 9.2 elasticsearch-create-enrollment-token Command not found

Hi,

I have an AlmaLinux Vm mit 4CPU und 4GB RAM where ELK should be deployed.

I have used this tutorial to achieve this:
"www.hostmycode.in/tutorials/install-and-configure-elk-stack-on-almalinux"

I got to the point, where enrollment token has to be added ...

Problem:
If I use bin\elasticsearch-create-enrollment-token.bat --scope kibana in the directory, it seems not to be found:

Has anybody an idea, what the problem van be?

Thank you

Best regards

E

Hi @Elasticisti,

This isn't a tutorial of ours, but can you try the below as per our install docs:

./bin/elasticsearch-create-enrollment-token -s kibana

I do see the elasticsearch-create-enrollment-token in your screenshot, so it has been created.

Hope that helps!

Thank you Carly,

it has helped, I have had to use also this:

"Are you running elasticsearch on a single node? If so, check if you have the line cluster.initial_master_nodes: ["localhost"] uncommented on the elasticsearch.yml file. Comment the line and add discovery.type: single-node on the next line. Restart elasticsearch and check. Check on this link too [Error] Setup-passwords: Failed to determine the health of the Cluster"

After these changes, it works now.

regards

E.

1 Like