Running Elastic Search and Kibana Locally in Ubuntu

tech kamar
Sep 30, 2024

Download Elastic search

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.15.2-linux-x86_64.tar.gz
tar -xvf elasticsearch-8.15.2-linux-x86_64.tar.gz

Configure to disable HTTPS

Open config/elasticsearch.yml file. Replace everything with the contents below

xpack.security.transport.ssl.enabled: false
xpack.security.http.ssl.enabled: false

Start ElasticSearch in new Terminal

bin/elasticsearch

Now in another terminal

Set password for user : elastic

bin/elasticsearch-setup-passwords auto

As per the image above. The password is HkieavcIJjSa9EZanrtr

Verify password

curl -X GET "http://localhost:9200" -u elastic:HkieavcIJjSa9EZanrtr

Download Kibana

wget https://artifacts.elastic.co/downloads/kibana/kibana-8.15.2-linux-x86_64.tar.gz
tar -xvf kibana-8.15.2-linux-x86_64.tar.gz

Configure and run Kibana

Open config/kibana.yml and replace with these values

elasticsearch.ssl.verificationMode: none
elasticsearch.hosts: ["http://localhost:9200"]
elasticsearch.username: "kibana_system"
elasticsearch.password: "BjhM5GxVR8aZSI6pPqpB"

Run Kibana

bin/kibana

Access kibana in browser at http://localhost:5601/

for login purpose use username elastic and password HkieavcIJjSa9EZanrtr

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet