Based on an operation, we've got the data, then we will process the data, and therefore chose Kibana
First to introduce,
Kibana is an open source platform for analysis and visualization of Elasticsearch, used to search, view in Elasticsearch interactive store data in the index .
Use Kibana, through a variety of charts for advanced data analysis and display .
Kibana make huge amounts of data easier to understand. It is simple , browser-based user interface to quickly create real-time dashboard display Elasticsearch dynamic queries .
Enter the following:
1. First, elasticsearch and kibana built on a server.
Secondly, the establishment of an index kibana interface, and index elaticsearch established pairing.
Step on the establishment of the index are as follows:
1. Open the management of the management kibana
2. Click the index patterns index module.
3. Select the create index pattern module index.
After entering the new index pages, indexing the index name and elasticsearch to establish correspondence , otherwise, the index kibana can not be created.
Do not change into the next step which is the default option set, you can directly create.
2.索引建立完成后,我们可以去discover选项,选择建立的索引,查看通过elaticsearch上传的数据。
3.既然已经找到数据,那么我们就要对这些数据进行处理,我们选择可视化里面的创建折线图Line来展示。
然后选择想可视化的对应索引后,将出现如下界面。
选择X和Y的单位等,比如x轴选择时间作为单位,但是出现了以下问题:
匹配不到相应类型,也就是说,我在elaticsearch上传的时间不是kibana需要的date类型。那我们的时间是什么类型呢??
再回到当初的python上传数据的代码发现,第23行的这句话(在上一篇文里面):