In this article, I will provide a detailed, step-by-step guide on setting up Elasticsearch and Kibana on a Windows system. We'll begin by downloading the necessary files, and then proceed to installation and configuration on your local machine.
What is Elastic search?
Elasticsearch is an open-source, distributed search engine that helps in searching large-scale data, data visualization, security, logging, and monitoring. Elasticsearch is widely used in large-scale applications like e-commerce website search engines, store log data and event data analysis, and more. Elasticsearch provides a wide range of features, like full-text search, schema-free storage of structured and unstructured data, aggregation, and analytics.
What is kibana?
Kibana is an open-source data visualization tool that is used to analyze large volumes of data in real-time applications. It provides a wide range of features, like data visualization, searching capability based on elastic, dashboarding, and data transformation. It is easy to integrate with Elasticsearch, which helps to leverage powerful search, and Elasticsearch analytics provides quick data exploration to their users.
How to install Elasticsearch and Kibana on a Windows machine?
1. Find elastic search search from Google using the below keywords
2. Download Elasticsearch from this URL: Click here to download elasticsearch
3. Select Windows from the platform dropdown.
4. Click on the Windows button to download the Elasticsearch setup.
5. The Elasticsearch set-up will be downloaded in a zip folder.
6. Extract all files from the downloaded zip folder.
7. Click on the bin folder and click on the elastic search bat file.
8. If you get a screen like the above, then please click on More Info and then click on the Run button.
9. Once you click on the Run anyway button, the elastic search setup will start, and you will see the below screen.
10. We are done with the elastic search setup on the local machine, and it is running now. On the above screen, we have some useful information that will be required for kibana and elastic configuration.
There are three items we need to keep in mind.
- User Name: elastic
- Password: Yellow highlighted in the above snippet
- Enrollment Token:Yellow is highlighted in the above snippet, which will be valid for the next 30 minutes from the Elastic search run.
11. Download Kibana from URL: Click here to download kibana
12. Click on the Windows Button to download Kibana Setup.
13. Once you get zip files from the download, extract the Kibana setup and keep it in the same place where we kept the elastic search setup.
14. Click on the Kibana bat file to start the Kibana setup and wait for some time to complete the execution of the bat file.
15. Once execution is done, you will get a localhost URL where you can access Kibana on your local machine.
16. Once you open the URL in your browser, you will get the above screen, where you have to enter the "enrollment token" which we have marked in step no. 8 that we have to enter in the above screen.
17. Click on the Configure Elastic button after the enrollment token is entered.
Note. This enrollment token is valid only for the next 30 minutes. If you get a token invalid error, then you need to re-generate the enrollment token using this command from your command point.
- Make sure your elastic search is running on your system, then run the below command.
- Go to the bin folder of your elasticsearch set-up folder, then run "elasticsearch-create-enrollment-token --scope kibana."
18. Once you click on the Configure Elasticsearch button, you will see a screen below with the status of the configuration.
19. Once the configuration is done, you need to enter your username and password to login to Kiban and Elasticsearch.
20. Once you log in to Elasticsearch, you will be able to see the home page of Elasticsearch.
21. Once you click on "Explore on my own," it will land you on the Elasticsearch home page as below.
22. You can explore more on an Elasticsearch dashboard, as shown below. You can use the Create dashboard button to create a custom dashboard and data visualization. By using Dev Tools, you can create an elastic index and perform CRUD operations (create, read, update, delete). I am planning to write the next article on CRUD operations in Elasticsearch.
Summary
In this article, we have learned how to set up Elasticsearch and Kibana by following the above 20 steps. Elasticsearch and Kibana have been installed on the local machine and are now up and running. I hope this article will help you set up Elasticsearch and Kibana on your Windows machine. Thank you so much for reading. If you wish to read more articles, please refer to my article at this URL: Click Here
You can find my other articles on elasticsearch.net here.
- Getting Started With Elastic In Using .NET Nest Client
- CRUD Operation using Elastic Search And .Net Core API