DEV Community

Sudarshan Swain
Sudarshan Swain

Posted on • Updated on

What is Elasticsearch?Its setup & configuration

pre-reqsites to install Elasticsearch and kibana 8.4.3 (Latest version)
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg

sudo apt-get install apt-transport-https

echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list

sudo apt-get update && sudo apt-get install elasticsearch

sudo apt-get update && sudo apt-get install kibana
Note:- its uses the same repo both elasticsearch and Kiabana

Refrence - https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html

Certficates Needs to be configured in 8.4.3 Version.
While Installing elasticsearch 8.4.3 Certs already created & stores in the /etc/elasticsearch

After Kibana Installed its prompts for the enrollement token following command will genereate token from command-line
sudo bash /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token --scope kibana
after token successfully pasted its will ask for verfication code following command will give secure code
sudo bash /usr/share/kibana/bin/kibana-verification-code

API need to authinticates https only while we use ELK curl command-lines

Top comments (0)