Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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

./bin/kibana –allow-root

Provide Enrollment Kye of ElasticSearch

Login to Kibana using elasticsearch username/password

Browse to this 
http://192.168.1.8:5601/
elastic
passCode language: JavaScript (javascript)

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

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 a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

How to install & configure Elastic Filebeat?

Filebeat client is a lightweight, resource-friendly tool that collects logs from files on the server and forwards these logs to your Logstash instance for processing. Filebeat is…

Read More

Install and Configure Elasticsearch: Step by Step Guide

Install and Configure Elasticsearch in Linux Download and Extract Elasticsearch Run and Verify Elasticsearch 9.3 Run and Verify Elasticsearch 7.x Run and Verify Elasticsearch 8.x Run and…

Read More

About Elastic (The Company)

Certainly! Here’s a detailed overview of Elastic N.V. (commonly known as Elastic, the company behind Elasticsearch), covering its transformation, history, key milestones, product evolution, and major release…

Read More

Aws Tutorials: FinOps – List of all Elasticcache cost optimization strategies

Here’s a table summarizing the cost optimization strategies for Amazon ElastiCache: Strategy Description Right-Sizing Instances Select instance types that match workload requirements. Use smaller nodes for development…

Read More

AWS Tutorials: Difference between Amazon Elasticsearch Service and Amazon Elastic cache Service

Here is a comparison table highlighting the differences between Amazon Elasticsearch Service (now known as Amazon OpenSearch Service) and Amazon ElastiCache Service: Feature/Aspect Amazon OpenSearch Service Amazon…

Read More

AWS Tutorials: How to Shutdown (Stop / Start) ElastiCache Service in AWS

ElastiCache does not support direct stopping and starting of clusters. Instead, the best way to minimize the cost of ElastiCache when it’s not in use is to…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Christina
Christina
3 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