Discover
發(fā)現(xiàn)
You can interactively explore your data from the Discover page. You have access to every document in every index that matches the selected index pattern. You can submit search queries, filter the search results, and view document data. You can also see the number of documents that match the search query and get field value statistics. If a time field is configured for the selected index pattern, the distribution of documents over time is displayed in a histogram at the top of the page.
在Discover頁(yè)面,你可以交互地瀏覽你的數(shù)據(jù)。你可以訪問符合索引模式的每個(gè)索引結(jié)果中的文件。你可以提交索引請(qǐng)求,過濾搜索結(jié)果,查看結(jié)果中的數(shù)據(jù)。你也可以查看符合索引結(jié)果文件的數(shù)量,得到字段結(jié)果的統(tǒng)計(jì)。如果一個(gè)時(shí)間字段符合選擇的索引模式,那么,分布式文件將以柱狀圖的形式展現(xiàn)在頁(yè)面頂部。
The Time Filter restricts the search results to a specific time period. You can set a time filter if your index contains time-based events and a time-field is configured for the selected index pattern.
時(shí)間過濾器把搜索結(jié)果限制到一個(gè)特殊的時(shí)期。你可以設(shè)置一個(gè)時(shí)間過濾器,如果你的索引包括基于時(shí)間的時(shí)間,一個(gè)時(shí)間字段將被選擇的索引模式配置。
By default the time filter is set to the last 15 minutes. You can use the Time Picker to change the time filter or select a specific time interval or time range in the histogram at the top of the page.
一般情況下,時(shí)間過濾器被設(shè)置成15分鐘。你可以使用Time Picker改變時(shí)間過濾器,或者選擇一個(gè)明確的時(shí)間間隔,或者時(shí)間在頁(yè)面頂部的柱狀圖上波動(dòng)。
To set a time filter with the Time Picker:
使用Time Picker設(shè)置時(shí)間過濾器:
1. 點(diǎn)擊菜單欄的右上教來打開Time Picker。
2. 想要設(shè)置一個(gè)快速過濾,只要點(diǎn)擊一個(gè)快捷鏈接。
3. 想要設(shè)置一個(gè)相關(guān)的Time Picker,點(diǎn)Relative然后輸入相關(guān)的開始時(shí)間。你可以把開始時(shí)間設(shè)置成任意的年、月、日、小時(shí)、分和秒。
4. 想要設(shè)置一個(gè)完全的Time Picker,點(diǎn)Absolute然后在From字段輸入起始時(shí)間,在To字段輸入結(jié)束時(shí)間。
5. 點(diǎn)Time Picker 的底部來隱藏它。
To set a Time Filter from the histogram, do one of the following:
從柱狀圖設(shè)置時(shí)間過濾器,可以做下面的事情實(shí)現(xiàn):
You can use the browser Back button to undo your changes.
你可以使用瀏覽器的后退按鈕來撤銷你的操作。
The histogram lists the time range you’re currently exploring, as well as the intervals that range is currently using. To change the intervals, click the link and select an interval from the drop-down. The default behavior automatically sets an interval based on the time range.
柱狀圖列出來你當(dāng)前正在瀏覽數(shù)據(jù)的時(shí)間維度,也包括你正在使用的時(shí)間間隔。為了改變時(shí)間間隔,可以點(diǎn)擊鏈接,從下拉菜單中選擇。默認(rèn)的行為會(huì)隨著時(shí)間波動(dòng),被設(shè)置為一個(gè)時(shí)間間隔。
You can search the indices that match the current index pattern by submitting a search from the Discover page. You can enter simple query strings, use the Lucene query syntax, or use the full JSON-basedElasticsearch Query DSL.
你可以搜索符合現(xiàn)在索引結(jié)果的數(shù)據(jù),通過在Discover頁(yè)面提交一個(gè)搜索。你可以輸入一些簡(jiǎn)單的請(qǐng)求字段,使用 Lucene搜索語(yǔ)法,或者使用完全基于JSON的Elasticsearch Query DSL。
When you submit a search, the histogram, Documents table, and Fields list are updated to reflect the search results. The total number of hits (matching documents) is shown in the upper right corner of the histogram. The Documents table shows the first five hundred hits. By default, the hits are listed in reverse chronological order, with the newest documents shown first. You can reverse the sort order by by clicking on the Time column header. You can also sort the table using the values in any indexed field. For more information, see Sorting the Documents Table.
當(dāng)你提交一個(gè)搜索,柱狀圖、文件列表、字段列表也會(huì)隨著搜索結(jié)果而更新。所有的hits數(shù)(即符合的文件總數(shù))在柱狀圖的右上方顯示出來。文件列表展現(xiàn)了前500個(gè)滿足的。一般情況下,hits會(huì)按時(shí)間反序排列,最新的文件排在最前面。你可以把索引順序反過來,通過點(diǎn)擊Time柱的頭。你也可以對(duì)列表進(jìn)行排序,通過使用所有索引的字段。關(guān)于更多信息,詳見: Sorting the Documents Table。
To search your data:
為了檢索你的數(shù)據(jù):
Enter a query string in the Search field: 在搜索域輸入一個(gè)請(qǐng)求字段:
safari
to search all fields for the term safari
.safari
來搜索所有關(guān)于safari
的字段。status:200
to limit the results to entries that contain the value 200
in the status
field.[START_VALUE TO END_VALUE]
. For example, to find entries that have 4xx status codes, you could enter status:[400 TO 499]
.To specify more complex search criteria, you can use the Boolean operators AND
, OR
, andNOT
. For example, to find entries that have 4xx status codes and have an extension of php
orhtml
, you could enter status:[400 TO 499] AND (extension:php OR extension:html)
.
These examples use the Lucene query syntax. You can also submit queries using the Elasticsearch Query DSL. For examples, see query string syntax in the Elasticsearch Reference.
為了檢索更復(fù)雜的內(nèi)容,你可以使用AND
, OR
, 和NOT
。例如:status:[400 TO 499] AND (extension:php OR extension:html)
.
To clear the current search and start a new search, click the New Search button in the Discover toolbar.
清理現(xiàn)有的搜索結(jié)果,新建一個(gè)新的索引,可以點(diǎn)擊工具欄中的New Search按鈕。You can reload saved searches on the Discover page and use them as the basis of visualizations. Saving a search saves both the search query string and the currently selected index pattern.
你可以在Discover界面重新導(dǎo)入已有的搜索結(jié)果,并使用它們做新的可視化操作。該操作保存了搜索請(qǐng)求字段和當(dāng)前選擇的索引模式。
To save the current search:
保存過程:
To load a saved search:
加載過程:
If the saved search is associated with a different index pattern than is currently selected, loading the saved search also changes the selected index pattern.
在保存的搜索結(jié)果中,含有不同的索引模式,而不僅僅是當(dāng)前選擇的,重新加載保存的搜索結(jié)果也改變了選擇的索引模式。
When you submit a search request, the indices that match the currently-selected index pattern are searched. The current index pattern is shown below the search field. To change which indices you are searching, click the name of the current index pattern to display a list of the configured index patterns and select a different index pattern.
當(dāng)你提交一個(gè)搜索要求,符合當(dāng)前選擇索引模式的信息將被檢索。當(dāng)前索引模式將在搜索欄下展現(xiàn)。為了改變你正在檢索的索引項(xiàng),點(diǎn)擊當(dāng)前索引模式的名字,來展現(xiàn)一些列索引模式,然后選擇一個(gè)新的。
For more information about index patterns, see Creating an Index Pattern.
關(guān)于索引模式的更多信息,詳見:Creating an Index Pattern。
You can configure a refresh interval to automatically refresh the page with the latest index data. This periodically resubmits the search query.
你可以確定一個(gè)刷新間隔來自動(dòng)刷新頁(yè)面,顯示最新的信息。這會(huì)周期性地重發(fā)搜索請(qǐng)求。
When a refresh interval is set, it is displayed to the left of the Time Filter in the menu bar.
當(dāng)一個(gè)刷新間隔被設(shè)置后,它在菜單欄中Time Filter的左側(cè)被展現(xiàn)。
To set the refresh interval:
怎樣設(shè)置刷新間隔
To automatically refresh the data, click the
為了周期性刷新數(shù)據(jù),點(diǎn)擊Auto-refresh按鈕選擇一個(gè)自動(dòng)刷新間隔:
When auto-refresh is enabled, Kibana’s top bar displays a pause button and the auto-refresh interval:
當(dāng)自動(dòng)刷新設(shè)置好后,Kibana的頂部條看起來像這樣
You can filter the search results to display only those documents that contain a particular value in a field. You can also create negative filters that exclude documents that contain the specified field value.
你可以過濾搜索結(jié)果,讓其只顯示一些特殊字段。你也可以排除過濾器來排除掉包含特殊字段值得數(shù)據(jù)。
You can add filters from the Fields list or from the Documents table. When you add a filter, it is displayed in the filter bar below the search query. From the filter bar, you can enable or disable a filter, invert the filter (change it from a positive filter to a negative filter and vice-versa), toggle the filter on or off, or remove it entirely. Click the small left-facing arrow to the right of the index pattern selection drop-down to collapse the Fields list.
你可以從Fields添加過濾器,或者從Documents表添加過濾器。當(dāng)你添加時(shí),在搜索欄下回顯示出來過濾條。從過濾條,你可以是一個(gè)過濾器工作或不工作,更改它,打開或關(guān)閉它,或者完全刪除它。點(diǎn)擊向左的箭頭到索引模式塊的右邊,可以折疊Fields列表。
To add a filter from the Fields list:
從Fields列表增加過濾器:
1. 點(diǎn)擊你想要過濾字段的名字,這里展現(xiàn)了字段中排名最高的5個(gè)值。在每個(gè)值得右邊,有兩個(gè)個(gè)放大鏡按鈕,一個(gè)用來普通過濾,一個(gè)用來排除過濾。
2. 普通過濾,按鈕
3. 排除過濾,按鈕
To add a filter from the Documents table:
從Documents目錄增加過濾器:
2. 普通過濾,按鈕
3. 排除過濾,按鈕
When you create a filter anywhere in Kibana, the filter conditions display in a green oval under the search text entry box:
當(dāng)你再Kibana的任何地方創(chuàng)建一個(gè)過濾器后,這個(gè)過濾器的狀態(tài)將在搜索輸入框下的綠色橢圓體內(nèi)展現(xiàn):Hovering on the filter oval displays the following icons:
綠色橢圓體上的按鈕:
To apply any of the filter actions to all the filters currently in place, click the
想要為當(dāng)前工作的過濾器應(yīng)用任何上面的行為,可以點(diǎn)擊Global Filter Actions按鈕,選擇一種行為。
When you submit a search query, the 500 most recent documents that match the query are listed in the Documents table. You can configure the number of documents shown in the table by setting thediscover:sampleSize
property in Advanced Settings. By default, the table shows the localized version of the time field specified in the selected index pattern and the document _source
. You can add fields to the Documents table from the Fields list. You can sort the listed documents by any indexed field that’s included in the table.
當(dāng)你提交一個(gè)查詢請(qǐng)求,500個(gè)最近符合的文檔被列在Documents表中。你可以在列表中設(shè)置符合文檔的數(shù)目,設(shè)置方法是在Advanced Settings.設(shè)置discover:sampleSize。一般情況下,列表中展現(xiàn)了時(shí)間字段的局限化版本,被確定在選擇的索引模式和文件_source中。你可以從Fields列表為 Documents表增加字段。你可以用包含在表中的任何索引字段為文件排序。
To view a document’s field data, click the Expand button
想要查看文件中的字段信息,可以在第一個(gè)圓柱體(它一般是Time),點(diǎn)擊Expand 按鈕到文件入口左側(cè)。Kibana從ES讀取文件數(shù)據(jù),然后展現(xiàn)在表中。表的每一行包含了每個(gè)字段的名字、添加過濾器按鈕和字段值。
You can sort the documents in the Documents table by the values in any indexed field. If a time field is configured for the selected index pattern, by default the documents are sorted in reverse chronological order.
可以使用索引字段的值,為文件列表排序。如果一個(gè)時(shí)間字段被設(shè)置到索引模式中了,那么產(chǎn)生的結(jié)果是按照反時(shí)間順序排列的。
To change the sort order:
改變索引順序:
By default, the Documents table shows the localized version of the time field specified in the selected index pattern and the document _source
. You can add fields to the table from the Fields list or from a document’s expanded view.
To add field columns to the Documents table:
一般情況下,Documents列表中展現(xiàn)了時(shí)間字段的局限化版本,被確定在選擇的索引模式和文件_source中。你可以從Fields表或從文件的擴(kuò)展視圖,給列表中增加字段。
怎樣增加字段柱到Documents列表。
1. 鼠標(biāo)在字段列表的一個(gè)字段上,點(diǎn)擊它的 add 按鈕。
2. 重復(fù)操作,直到你把所有字段都加進(jìn)去了。
3. 然后,增加一個(gè)字段住從文件的擴(kuò)展視圖,點(diǎn)擊Toggle column in table按鈕。
The added field columns replace the _source
column in the Documents table. The added fields are also listed in the Selected Fields section at the top of the field list.
新添加的字段住會(huì)代替文件列表中的_source柱。在字段列表的上方,添加的字段也列在Selected Fields部分。
To rearrange the field columns in the table, mouse over the header of the column you want to move and click the Move button.
想要重新布置列表中的柱形,可以吧鼠標(biāo)放在你想要移動(dòng)的柱形上,點(diǎn)移動(dòng)按鈕。
To remove field columns from the Documents table:
方法
From the field list, you can see how many documents in the Documents table contain a particular field, what the top 5 values are, and what percentage of documents contain each value.
從字段列表,你需要文件列表中 包含了多少文件,5個(gè)關(guān)鍵字段是什么,占的比例又是多少。
To view field data statistics:
方法
To create a visualization based on the field, click the Visualize button below the field statistics.
小建議:想要查看基于字段的可視化結(jié)果,可以點(diǎn)擊字段統(tǒng)計(jì)結(jié)果下的Visualize按鈕。
備注:
材料來自elastic官網(wǎng)。
地址:
https://www.elastic.co/guide/en/kibana/current/discover.html
聯(lián)系客服