Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install Elasticsearch and Kibana on Ubuntu 18.04 | Google Cloud

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
How To Install Elasticsearch And Kibana On Ubuntu 18.04
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to Install Elasticsearch and Kibana on Ubuntu 18.04 on Google Cloud Platform. Elasticsearch is a RESTful search engine which stores all collected data. Kibana is a web interface for visualizing the data stored in Elasticsearch. ADVERTISEMENT In this guide you are going to learn how to install and set up Elasticsearch on Ubuntu 18.04 […]

ADVERTISEMENT

How to Install Elasticsearch and Kibana on Ubuntu 18.04 on Google Cloud Platform.

Elasticsearch is a RESTful search engine which stores all collected data.

Kibana is a web interface for visualizing the data stored in Elasticsearch.

ADVERTISEMENT

In this guide you are going to learn how to install and set up Elasticsearch on Ubuntu 18.04 LTS on Google Compute Engine, install Kibana and configure it with Nginx to visualize the data stored in Elasticsearch through your domain name.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Prerequisites

  • Standard Instance (3.75 GB RAM with Ubuntu 18.04 LTS OS).
  • A running Compute Engine, see the Setting up Compute Engine Instance.
  • Java 8 Install Oracle Java JDK on Google Cloud Ubuntu 18.04 LTS
  • Domain name is pointed to your virtual machine.
  • For setting up Cloud DNS, see the Setting up Google Cloud DNS for your domain
  • Nginx and configure as a reverse proxy for Kibana Install Nginx and setup UFW

Install Elasticsearch

Once you have your Compute Engine set up with Ubuntu 18.04, Nginx and your domain is pointed to your VM Instance, you are ready to install and configure 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.list
sudo apt update
sudo apt install elasticsearch

Once Elasticsearch is installed you can restrict port 9200 from outside access by editing the elasticsearch.yml file and uncomment the network.host and replace the value with locahost.

ADVERTISEMENT
sudo nano /etc/elasticsearch/elasticsearch.yml 

So it looks looks like this..

network.host: localhost

Hit Ctrl+X followed by Y and Enter to save the file and exit.

ADVERTISEMENT

Now start and enable Elasticsearch on server boot.

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Now make sure your Elasticsearch service is running.

ADVERTISEMENT
sudo systemctl status elasticsearch

Test your installation by sending a HTTP request.

curl -X GET "localhost:9200"

You will get a response with name, cluster_name, cluster_uuid, version.

ADVERTISEMENT

Now Elasticsearch is installed and running successfully, next we can install Kibana.

Install Kibana

sudo apt install kibana

Once Kibana is installed you can enable and start Kibana.

sudo systemctl enable kibana
sudo systemctl start kibana

As Kibana listens only on localhost port 5601, you need to setup Nginx reverse proxy to allow access through your Domain name.

Set up Nginx Reverse Proxy for Kibana

Create a new Nginx server block.

sudo nano /etc/nginx/sites-available/yourdomainname.com

Paste the following:

server {
listen 80;
server_name yourdomainname.com;
location / {
rewrite ^/(.*) /$1 break;
proxy_ignore_client_abort on;
proxy_pass http://localhost:5601;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}

Hit Ctrl+X followed by Y and Enter to save the file and exit.

Validate your Nginx configuration and restart it.

sudo nginx -t
sudo service nginx restart

Now Kibana dashboard is accessible via http://yourdomainname.com/status

Now Elasticsearch is configured and Kibana dashboard is set up using Nginx reverse proxy.

Tags: Compute EngineGoogle Cloud PlatformJavaUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Why Did Meta Shut Down 3 Vr Games?

Why Did Meta Shut Down 3 VR Games?

September 22, 2023

HeyGen AI: Free AI Video Generator to Create Amazing Videos

10 Best AI Prompts for Writers to Improve Website SEO

How to See all my Birthday Posts on Facebook

Google Bard Extensions: How to Link Your Gmail, Docs, Maps, and More to an AI Chatbot

AI Annotation Jobs: Everything You Need to Know

Popular Articles

Covers Ai

Create High Quality AI Cover Song with Covers AI

September 18, 2023

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

How to Clear Gmail Inbox with AI: Tips and Tricks

10 Best Tools Change Image Background Online Free

How to Use ChatGPT to Translate Your Website or Blog

How to Use Canva on ChatGPT: A Step-by-Step Guide

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.