Kibana - cchantra/bigdata.github.io GitHub Wiki

wget https://artifacts.elastic.co/downloads/kibana/kibana-7.12.0-linux-x86_64.tar.gz

tar xvf  kibana/kibana-7.12.0-linux-x86_64.tar.gz

mv  kibana-7.12.0-linux-x86_64 kibana

cd kibana

Then edit configuration.

vi config/kibana.yml

uncomment the line to link with elastic search

elasticsearch.hosts: ["http://localhost:9200"]

Run it as foreground.


bin/kibana

Run as a service. create service file where hadoop is user name and group name

vi /usr/lib/systemd/system/kibana.service
[Unit]

Description=Kibana

[Service]

Type=simple

User=hadoop

Group=hadoop

#User=root

#Group=root

ExecStart=/home/hadoop/kibana/bin/kibana "-c /home/hadoop/kibana/config/kibana.yml"  # location of your kibana

Restart=always

[Install]

WantedBy=multi-user.target

save it

  • Reload service file, enable at start and start service, check status
sudo systemctl daemon-reload

sudo systemctl enable kibana.service

sudo systemctl start kibana.service

sudo systemctl status kibana.service

Follow the instruction in: https://stackify.com/elasticsearch-tutorial/

  1. to create index

  2. read index

  3. update

  4. search


PUT /my_index 
{   "settings": {     "number_of_shards":   1,      "number_of_replicas": 0   } }

https://www.elastic.co/guide/en/elasticsearch/guide/current/_talking_to_elasticsearch.html

In elasticsearch, we index, search, sort, and filter documents

Elasticsearch uses JavaScript Object Notation, or JSON, as the serialization format for documents.

References

https://www.elastic.co/blog/a-practical-introduction-to-elasticsearch

https://www.elastic.co/guide/en/kibana/current/getting-started.html