Download the SHA-512 checksum file, which is used in the next step to verify that the Elasticsearch .deb package was downloaded correctly and was not corrupted or tampered with.
Compare the SHA of the downloaded Debian package and the published checksum
Use dpkg to install the package
Edit the elasticsearch.yaml , which can be accessed by
We updated the network.hostto the local IP to restrict Elasticsearch access to the local machine only, We don't need remote connections for now.
http.port is to set the http port for Elasticsearch to 9200 , Which is the default.
Start the Elasticsearch service and Enable it to start on boot
Check the status of the service
Try accessing the Elasticsearch by https://localhost:9200
Installing Kibana
Do the same steps we did with Elasticsearch earlier, Download the .deb package for Kibana and the SHA512, After the comparison, we can install the package
Edit the kibana.yaml file
server.port: 5601 This confirms Kibana will run on port 5601, which is the default.
server.host: "localhost" This ensures Kibana is only accessible from the localhost, meaning it cannot be accessed remotely. If you want to allow remote access to Kibana, you can change it to 0.0.0.0 or any specific IP address.
elasticsearch.hosts: ["http://localhost:9200"] This tells Kibana where to find Elasticsearch. In this case, Kibana will connect to an Elasticsearch instance running on the same machine.
Start the Kibana service and Enable it to start on boot
Try accessing the kibana by http:\\localhost:5601
To create the enrollment token:
The verification code will then be requested, which we can obtain by:
The login page will appear, and we will reset the password of the default user (elastic):