Okay so you want a faster and better way to go through your huge user and customer data and thought to use Elasticsearch on your Linux machine. You configured it all right and it works, but you then realize that some things are not quite right and would be happy if you could debug queries, so you thought to install Kibana. Unfortunately, you’ve forgotten the admin credentials you created for elasticsearch and not quite sure how to achieve the whole set up, so you ended up here. Worry not, for this blog post will guide you on the right way to install + configure elasticsearch and kibana on a Linux machine, specifically, Ubuntu (22.04).
Things to do:
- Install Elasticsearch following the instructions on their documentation
- Store the admin password in your ~/.bashrc file
- Install Kibana following their docs
- Get the kibana enrolment token from elasticsearch:
cd /usr/share/elasticsearch/ sudo bin/elasticsearch-create-enrollment-token --scope kibana
- Get the verification code
cd /usr/share/kibana sudo bin/kibana-verification-code
- Login using the elastic username and the password (remember you added it to ~/.bashrc)
- Succeed!