官术网_书友最值得收藏!

  • Mastering Kibana 6.x
  • Anurag Srivastava
  • 313字
  • 2021-07-16 18:20:18

Elasticsearch query DSL

Kibana accepts Lucene query syntax or Elasticsearch query DSL for querying through the index. It also supports the new Kuery language, but for that we need to enable it by clicking on Management and then on Advanced Settings. On the Advanced Settings page, we have the following two options:

  • Set search:queryLanguage:switcher:enable to true
  • Set the default language to search:queryLanguage 

Now, we have Packetbeat data in the Elasticsearch index, which we can use to get the answers for our questions. So, let's say we want to check what is happening on a certain port on the server. We can track it using the search box:

source.port:80

If we want to get only the records that have the source port as 80 and the transport type is tcp, we can modify the query and join both conditions with AND to filter out the result:

source.port:80 AND transport:tcp

The following screenshot shows the result of the filter option, source.port:80, through which we are getting the records where the source port number is 80:

In the previous screenshot, we can see the search criteria as source.port:80, and after searching, the result has been highlighted with the search value. By combining the search criteria with AND/OR, we can get more relevant results and drill down into the data. When we submit the search request, the document table, histogram, and field lists are updated as per our search results. After searching, the total number of matching documents is shown on the top part of the page as a number of hits. We have 350 hits.

Document listing is shown in reverse chronological order, which means that the newest document is first on the listing. We can change this by clicking on the up/down arrows in front of the time column in the document display.

主站蜘蛛池模板: 陕西省| 博客| 青田县| 包头市| 慈利县| 竹山县| 渭南市| 阿图什市| 许昌县| 陕西省| 黄大仙区| 奉贤区| 将乐县| 漯河市| 荥阳市| 合阳县| 白河县| 麦盖提县| 南开区| 博野县| 延安市| 潼南县| 英德市| 沙洋县| 阿尔山市| 天长市| 武清区| 九龙城区| 富平县| 钟祥市| 玛纳斯县| 云南省| 长岛县| 自贡市| 安阳市| 日土县| 吉安县| 佳木斯市| 吕梁市| 通城县| 罗城|