Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

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)
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Christina
Christina
2 years ago

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

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

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