Installing Elasticsearch and Kibana with ECS

Prerequisites

  1. An ECS instance with Ubuntu 18.04 64-bit
  2. Minimum 2GB RAM (Minimum requirement to run elasticsearch)
  3. Public IP Address

Step 1 — Create Security Group/Rules for Elasticsearch/Kibana

Step 2 — Install Java

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer -y
java -version
root@elasticServer:~# echo "$JAVA_HOME"
/usr/lib/jvm/java-8-oracle
sudo apt-get install oracle-java8-set-default

Step 3 — Install Elasticsearch

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.listsudo apt-get update
sudo apt-get install elasticsearch -y
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
curl -XGET 'localhost:9200/?pretty'
root@elasticServer:~# curl -XGET 'localhost:9200/?pretty'
{
"name" : "J1RnCG4",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "kHS3dFF2RfijJRgQeUBYvA",
"version" : {
"number" : "6.6.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "a9861f4",
"build_date" : "2019-01-24T11:27:09.439740Z",
"build_snapshot" : false,
"lucene_version" : "7.6.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}

Step 4 — Customize Elasticsearch

sudo vim /etc/elasticsearch/elasticsearch.yml
#cluster.name: my-application
cluster.name: Alibaba-Dev-Cluster
sudo systemctl restart elasticsearch
curl -XGET 'localhost:9200/?pretty'

Step 5 — Install Kibana

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.listsudo apt-get update
sudo apt-get install kibana -y
sudo systemctl daemon-reload
sudo systemctl enable kibana
sudo systemctl start kibana

Step 6 — Configure Kibana

sudo vim /etc/kibana/kibana.yml
#server.host: "localhost"
server.host: "0.0.0.0"
sudo systemctl restart kibana

Summary

Original Source

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Intelligently Generate Frontend Code from Design Files: Image Segmentation

How to Create Highly Available MongoDB Databases with Replica Sets

How to Deploy PrestaShop on Alibaba Cloud ECS

Diego : Next Generation Runtime of Cloud Foundry

Using Mapping Libraries — Part II

READ/DOWNLOAD@?

Lerna 5.1 — New website, new guides, new Lerna example repo, distributed caching support and speed!

Creating my personal website with Astro, Tailwind CSS, and Nx

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

EP.4 Using the API | Argo Workflows

Backup and Restore Postgres data running on a Kubernetes Cluster

Efficient fetching of data from Oracle database in Golang

Schedule PostgreSQL Backups with IBM Cloud Code Engine