Splunk 简明教程
Splunk - Dashboards
仪表板用于表示与某些业务含义相关的表格或图表。这是通过面板完成的。仪表板中的面板以视觉上吸引人的方式保存图表或汇总数据。我们可以将多个面板(因此可以将多个报告和图表)添加到同一个仪表板。
A dashboard is used to represent tables or charts which are related to some business meaning. It is done through panels. The panels in a dashboard hold the chart or summarized data in a visually appealing manner. We can add multiple panels, and hence multiple reports and charts to the same dashboard.
Creating Dashboard
我们将继续使用上一章中的搜索查询,该查询显示按星期几统计的文件数。
We will continue with the search query from the previous chapter which shows the count of files by week days.
我们选择 Visualization 选项卡以饼状图的形式查看结果。为了将图表放在仪表板上,我们可以选择 Save As → Dashboard Panel 选项,如下所示。
We choose the Visualization tab to see the result as a pie chart. To put the chart on a dashboard, we can choose the option Save As → Dashboard Panel as shown below.

下一个屏幕将要求填写仪表板和其中面板的详细信息。我们填写屏幕上的详细信息,如下所示。
The next screen will ask for fillings the details of the dashboard and the panel in it. We fill the screen with details as shown below.

单击 Save 按钮后,下一个屏幕会提供一个查看仪表板的选项。在选择查看仪表板后,我们将获得以下输出,其中我们可以看到仪表板以及编辑、导出或删除的选项。
On clicking on Save button, the next screen gives an option to view dashboard. On choosing to view dashboard, we get the following output where we can see the dashboard and options to edit, export or delete.

Adding Panel to Dashboard
我们可以通过添加包含图表的新面板将第二个图表添加到仪表板。以下是我们将添加到上述仪表板中的条形图及其查询。
We can add a second chart to the dashboard by adding a new panel containing the chart. Below is the bar chart and its query which we are going to add to the above dashboard.

接下来,我们填写第二个图表的详细信息,并单击 Save ,如下面的图像所示 −
Next, we fill up the details for the second chart and click Save as shown in the below image −

最后,我们获得包含两个不同面板中两个图表的仪表板。正如我们在下图中看到的那样,我们可以编辑仪表板以添加更多面板,并且可以添加更多输入元素:文本、单选按钮和下拉按钮,以创建更复杂的仪表板。
Finally, we get the dashboard which contains both the charts in two different panels. As you can see in the image below, we can edit the dashboard to add more panels and you can add more input elements: Text, Radio and Dropdown buttons to create more sophisticated dashboards.
