What is Kibana
Kibana is an open source visualization dashboard for Elasticsearch, where we can see all of our application logs picked up by elasticsearch. Users can produce bar, line and scatter plots, or pie charts based on the requirements and maps on high of enormous volumes of information.
We will install kibana with docker and remember to provide the elasticsearch url in docker run command so that it should be able to connect to elasticsearch to visualize the application logs.
To run kibana using docker execute the command below
sudo docker run -it -d -p 5601:5601 -e "ELASTICSEARCH_URL=http://172.17.0.1:9200" docker.elastic.co/kibana/kibana:6.5.1
In the above command we are running kibana as a docker container and we have passed our elasticsearch url as an environment with docker host ip and elasticsearch port no. and we are running in detached mode
To access kibana dashboard hit your server ip with port 5601 ex:-
To Create your index pattern for logs follow the steps:-
- Click on Management
- Click on Index Pattern
- Now click on Next Step
- Select timestamp from dropdown
- Click on Create Index pattern
- Now Click on Discover, you will be able to see your application logs
Now type the name of your index and it should completely match your index pattern