MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to install kibana and configure with Elasticsearch


Download & Extract kibana 8.x


$ cd /opt
$ yum install wget -y
$ wget https://artifacts.elastic.co/downloads/kibana/kibana-8.4.2-linux-x86_64.tar.gz
$ tar -zxvf kibana-8.4.2-linux-x86_64.tar.gz
Code language: JavaScript (javascript)

Configure kibana 8.x


$ cd kibana-8.4.2
$ git init
$ git config user.name "Rajesh Kumar"
$ git config user.email "devops@rajeshkumar.xyz"
$ git add config/
$ git commit -m"commiting config"
$ git statis
$ vi config/kibana.yml
$ git add config
$ git commit -m"adding host"
$ ./bin/kibana
$ ./bin/kibana --allow-root
Code language: JavaScript (javascript)

Download, Extract, Install and Configure kibana 9.x


wget https://artifacts.elastic.co/downloads/kibana/kibana-9.0.0-linux-x86_64.tar.gz
tar -zxvf kibana-9.0.0-linux-x86_64.tar.gz
cd kibana-9.0.0
bin/kibana

Access - http://3.110.178.151:5601/?code=259499
Insert enrollment token received from elasticsearch.
Code language: JavaScript (javascript)

vi config/kibana.yml

Kibana.yml with server.host set to the private IP of the host where Kibana is installed

./bin/kibana –allow-root

Terminal running ./kibana --allow-root, Kibana awaiting setup with a URL and code to get started

Provide Enrollment Kye of ElasticSearch

Terminal running elasticsearch-create-enrollment-token -s kibana above the Kibana Configure Elastic enrollment token page
Kibana Configure Elastic to get started page with enrollment token pasted and Configure Elastic button marked

Login to Kibana using elasticsearch username/password

Browse to this 
http://192.168.1.8:5601/
elastic
passCode language: JavaScript (javascript)
Elastic user password from Elasticsearch setup output entered into the Kibana login form as user elastic
Kibana Welcome to Elastic page offering Add integrations or Explore on my own after login
Kibana Welcome home page with Enterprise Search, Observability, Security and Analytics tiles

Register/Enrolling kibana 8.x with elasticsearch


# https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html

How to generate enrollment token?
$ ./elasticsearch-create-enrollment-token -s kibana

How to register kibana with elasticsearch using enrollment token?
$ ./kibana-setup --enrollment-token <enrollment-token>
$ ./kibana

How to generate service token for kibana aka serviceAccountToken in elasticsearch server?
./elasticsearch-service-tokens create elastic/kibana my-token
Code language: HTML, XML (xml)

INFO: Kibana setup using enrollment process


If you want to use the enrollment process, then you should not make configuration changes to your kibana.yml but let the enrollment process handle this for you. enrollment process process would make following changes in kibana.yml

Git diff of kibana.yml showing elasticsearch hosts, service token, CA and fleet outputs added by enrollment

Some CRUD Example


curl -XPUT --cacert /home/elastic/elasticsearch-8.4.2/config/certs/http_ca.crt -u elastic:D+oYlbieuG3n2=EpiKU6'https://192.168.1.2:9200/rajesh111?&pretty'


curl -XPUT --cacert /home/elastic/elasticsearch-8.4.2/config/certs/http_ca.crt -u elastic:YrfJHfoQtniJqzyD4pM3 'https://192.168.1.2:9200/rajesh111/_doc/1' -H 'Content-Type: application/json' -d'
{
  "name": "iPhone 7",
  "camera": "12MP",
  "storage": "256GB",
  "display": "4.7inch",
  "battery": "1,960mAh",
  "reviews": ["Incredibly happy after having used it for one week", "Best iPhone so far", "Very expensive, stick to Android"]
}
'

curl -XGET --cacert /home/elastic/elasticsearch-8.4.2/config/certs/http_ca.crt -u elastic:D+oYlbieuG3n2=EpiKU6 'https://192.68.1.2:9200/rajesh111/_search?pretty=true&q=*:*'Code language: PHP (php)

Some example with Localhost


List of Existing Index
curl -XGET --cacert /home/ubuntu/elasticsearch-8.9.0/config/certs/http_ca.crt -u elastic:gy6qhiWkuJ5S*7dWk83C https://localhost:9200/_cat/indices?pretty

Create an Index
curl -XPUT --cacert /home/ubuntu/elasticsearch-8.9.0/config/certs/http_ca.crt -u elastic:gy6qhiWkuJ5S*7dWk83C https://localhost:9200/rajesh111?&pretty

Create a Doc
curl -XPUT --cacert /home/ubuntu/elasticsearch-8.9.0/config/certs/http_ca.crt -u elastic:gy6qhiWkuJ5S*7dWk83C 'https://localhost:9200/rajesh111/_doc/1' -H 'Content-Type: application/json' -d'
{
  "name": "iPhone 7",
  "camera": "12MP",
  "storage": "256GB",
  "display": "4.7inch",
  "battery": "1,960mAh",
  "reviews": ["Incredibly happy after having used it for one week", "Best iPhone so far", "Very expensive, stick to Android"]
}
'
curl -XGET --cacert /home/ubuntu/elasticsearch-8.9.0/config/certs/http_ca.crt -u elastic:gy6qhiWkuJ5S*7dWk83C 'https://localhost:9200/rajesh111/_search?pretty=true&q=*:*'
Code language: PHP (php)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Why Your Games Run Clearly with the ELK Stack

Learn how ELK Stack tools like Logstash, Elasticsearch, and Kibana help developers detect and resolve gameplay lags and freezes across all platforms. How the ELK Stack Helps…

Read More

ELK Demo Tutorial

Demo Video Sure! Here’s a compelling promotional content piece that highlights both the Intermediate and Advanced ELK (Elasticsearch, Logstash, Kibana) training courses by Rajesh Kumar, available at…

Read More

What is OpenSearch?

OpenSearch is an open-source search and analytics suite, derived from Elasticsearch 7.10.2 and Kibana 7.10.2. It’s designed to provide distributed search, analytics, and visualization capabilities across large…

Read More

What is Elastic Agents, Its Feature and How it works?

What is Elastic Agent: Elastic Agent is a unified tool that simplifies adding monitoring capabilities to your systems. It can collect various data types, including logs, metrics,…

Read More

Elastic Tutorials: Collects Docker metrics and logs using Elastic Agent

This Integration collects metrics and logs fromย Docker containers. The default data streams for metrics collection are:ย container,ย cpu,ย diskio,ย healthcheck,ย info,ย memoryย andย network. Theย imageย metricset is not enabled by default. Theย container_logsย data stream for containers’ logs…

Read More

How to deploy Elasticsearch, Fluentd and Kibana (EFK) in Kubernetes?

Logging Operator EFK(Elasticsearch, Fluentd, and Kibana) Logging Operator is an operator created in Golang to set up and manage EFK(Elasticsearch, Fluentd, and Kibana) cluster inside Kubernetes and…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Christina
Christina
4 years ago

Are these instructions if you are installing Elasticsearch and Kibana on the same server?

1
0
Would love your thoughts, please comment.x
()
x