Elasticsearch and Kibana Installation
Setting up elasticsearch as per offical document
Make sure you have opened 9200, 9300 port opened.
Now start the service using systemd and note down password or else you can reset if needed.
Now Install kibana
Start the service using systemd and make sure you have opened 5601 port, under /etc/kibana/kibana.yml make sure server.host: is set to "0.0.0.0" to access kibana apart from localhost, so you can acess from your browser.
Run the following code, it generates a token that you need to enter while accessing kibana in browser and then it asks for verification code you will have it when you started kibana using systemd service if not check status using systemd the outpt will have verification code.
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
next is asks for elastic username and password, elastic is username and you will have you pasword will installing it or also you can reset it.
This is same even when you install through archive but we have now done using debian package.