Day06 Kibana - Discover Search

在前面我们已经稍微了解如何把资料抓取到Elasticsearch,但是单纯用api来查询资料,对使用者来说实在是很难阅读,所以图形化的介面工具,kibana终於在里登场。

设定索引(index)

由於使用kibana时需要先建立索引(index),所以接下来我们将会说明kibana上要如何设定。

左选单 > Stack Management > Index patterns

https://ithelp.ithome.com.tw/upload/images/20210910/20129762QwzbYLtYce.jpg

index pattern建立完成後,可以到 Discover 选择刚才建立的filebeat-*查询资料。

左选单 > Discover

https://ithelp.ithome.com.tw/upload/images/20210910/20129762VlgCPeZNoV.jpg

资料读取出来後,可以利用左侧 Available Fields 选择想要呈现出来的栏位,就可以针对想看的资料来做聚焦。
https://ithelp.ithome.com.tw/upload/images/20210913/20129762V0h63k83xG.jpg

搜寻(search)

查询特定关键的资料,可以利用上方的search栏位。

简单查询语法如下:

  • 关键字搜寻:"keyword"
  • 条件:and、or、not
  • 栏位搜寻:key: "value"

全文搜寻条件符合version_check.php的资料
https://ithelp.ithome.com.tw/upload/images/20210913/20129762D2ySTJfCrC.jpg

全文搜寻条件符合"GET /index.php"的资料: 指资料中有包含"GET /index.php"
https://ithelp.ithome.com.tw/upload/images/20210913/20129762jl9oasNh31.jpg

全文搜寻条件符合GET /index.php的资料: 指资料中有包含GET/index.php
https://ithelp.ithome.com.tw/upload/images/20210913/20129762nUEQBoDpS2.jpg

全文搜寻条件符合"version_check.php" or "sql.php"的资料
https://ithelp.ithome.com.tw/upload/images/20210913/20129762UZAp89iCVY.jpg

指定范围搜寻条件符合customer_first_name: Boris: 指栏位customer_first_name内有Boris这名字的资料
https://ithelp.ithome.com.tw/upload/images/20210913/20129762NfuTLM6YYj.jpg

指定范围搜寻条件符合customer_first_name: (Boris or Mary): 指栏位customer_first_name内有BorisMary这名字的资料
https://ithelp.ithome.com.tw/upload/images/20210913/20129762uNtFgHoMrM.jpg


<<:  day6 - proto buffer 简介 & spec 编写

>>:  Day14 - 动态 新增/删除 Collection 项目(二) - Html Helper

【後转前要多久】# Day23 JS - JavaScript 变数、运算

变数 JS目前有三种宣告变数的方法。 在ES5以前都用var,ES6之後推出let与const。 新...

1.2 Design System - 做的优缺点

职场好榜样J大教我的 3 件事 遇到问题从不抱怨、总是马上找解决方法,因为那正是公司需要我们的原因...

Day21 用python写UI-聊聊PanedWindow & Notebook

PanedWindow有点像frame,但里面可以放很多子控建,Notebook就是有很多分页的感觉...

DAY26: 块作用域

在DAY25: 作用域三种类的种类介绍了Nodejs作用域种类,里面要提到了ES5的作用域,但其实现...

day31 虽然没有写完,但是还是要有summary

第一次写文章,其实我没有什麽自信能够写得好,毕竟我一直都不够厉害,所以也觉得自己没能写出什麽;後来真...