kibana7.10.1基本操作(饼图+直方图)
生活随笔
收集整理的這篇文章主要介紹了
kibana7.10.1基本操作(饼图+直方图)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
確保啟動elastic集群和kibana
curl -XPUT -H Content-Type:application/json http://Desktop:9201/test_index_1/persons/1 -d '{"name": "liumiaocn","userid": 1001,"hobby": "eating" }'curl -XPUT -H Content-Type:application/json http://Desktop:9201/test_index_1/persons/2 -d '{"name": "michael","userid": 1002,"hobby": "climbing moutains" }'curl -XPUT -H Content-Type:application/json http://Desktop:9201/test_index_1/persons/3 -d '{"name": "tommy","userid": 1003,"hobby": "eating" }'curl -XPUT -H Content-Type:application/json http://Desktop:9201/test_index_1/persons/4 -d '{"name": "kitty","userid": 1004,"hobby": "swimming" }'然后打開:
http://desktop:5601/app/management/data/index_management/indices
會看到下面的截圖:
?
創建index pattern
?
索引模式告訴Kibana哪些Elasticsearch索引包含您要使用的數據。 索引模式可以匹配單個索引,多個索引和匯總索引。
注意,所謂的索引(index)就是mysql中的database/schema
?
點擊index pattern->create index pattern
然后點擊Next Step
再次點擊create index pattern確認
?
?
餅圖
點擊左邊的
然后點擊visualize
再點擊Create new visualization
然后選擇 Pie
得到:
因為沒有指定類別,所以上圖顯示的只有一類
點擊Add以后選擇Split Slices
最后點擊上圖的Update得到:
###################################################################################
bar圖
同樣按照上述操作以后,設置如右下角
點擊update得到:
?
一句話總結上面的內容:
建立數據庫(index),然后可視化
Reference:
[1]kibana 筆記-- index pattern索引模式
總結
以上是生活随笔為你收集整理的kibana7.10.1基本操作(饼图+直方图)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 水槽什么牌子好?厨房水槽十大品牌排名
- 下一篇: 冬季怎么养胃 冬季吃什么养胃