After the initial setup from above you should see the following:


And then as you can see we get a few errors:

So we have to configure Elastic so we can access these security tools as well.
sudo vim /etc/elasticsearch/elasticsearch.ymlThen add the following:
xpack.security.enabled: true
xpack.security.authc.api_key.enabled: true
#
xpack:
security:
authc:
realms:
native:
native1:
order: 0

Then we set the passwords using: sudo ./elasticsearch-setup-passwords interactive

Then restart one more time → Then we make a similar configuration in Kibana:
vim /etc/kibana/kibana.yml ****
