Running Elastic Search and Kibana Locally in Ubuntu
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