For details about how to import logs to elasticsearch clusters Through flume, see flume log import to elasticsearch clusters.
Kibana Introduction
Kibana Homepage
Kibana is a powerful elasticsearch data display client. logstash has built-in kibana. You can also deploy kibana separately. The latest version of kibana3 is a pure HTML + JS client, it can be conveniently deployed on HTTP servers such as Apache and nginx.
Kibana3 address: https://github.com/elasticsearch/kibana
Address for kibana2: https://github.com/rashidkpc/Kibana
Kibana3 demo address: http://demo.kibana.org
From the demo, let's take a look at some basic functions of kibana.
Chart
A data table that allows you to customize the display sequence of columns.
The actually executed query statement is displayed.
Add a row
Add a panel to view the supported Panel types.
Add a pie chart
Display statistical results with map
Statistics by HTTP response code
Rich query syntax
Install kibana3
<span style="font-size:18px;">wget https://download.elasticsearch.org/kibana/kibana/kibana-latest.zipunzip kibana-latest.zipmkdir -p /var/www/logstash/mv kibana-latest/* /var/www/logstash/cd /var/www/logstash/app/dashboards</span>
Modify config. js
<span style="font-size:18px;"> elasticsearch: "http://"+"localhost"+":9200",</span>
Modify APP/dashboards/logstash. JSON to change [logstash-] YYYY. Mm. dd to the name of the index under es, as shown in)
<span style="font-size:18px;"> "pattern": "[logstash1-]YYYY-MM-DD",</span>
Then, upload the index.html of kibanain the browser.
See the following figure:
Kibana displays flume logs in the elasticsearch Cluster