Create dashboards and panels
In this section, you will save a search as a dashboard panel and add an input element to the dashboard.
Save a search as a dashboard panel
- Start a new search.
- Run the following search.
- Click the Visualization tab. The displays shows a Line Chart.
- Change the Line Chart to Pie Chart.
- Click Save As and select Dashboard Panel.
- Define a new dashboard and dashboard panel.
- For Dashboard, click New.
- For Dashboard Title, type
Buttercup Games - Purchases.
- The Dashboard ID field displays buttercup_games__purchases"'.
- For Dashboard Description, type
Reports on Buttercup Games purchases data
- For Dashboard Permissions, keep the default setting Private.
- For Panel Title, type
Top Purchases by Category.
- For Panel Powered By, keep the default setting Inline search.
- For Panel Content, keep the setting for Pie Chart.
- Click Save.
- Click View Dashboard.
For now, let's spend a little bit more time on this dashboard panel.
View and edit dashboard panels
There is a separate view to see a list of the dashboards that you have access to. From this view, you can create dashboards, and make changes to dashboards and dashboard panels.
- Click Dashboards in the App bar to see the Dashboards view.
You might see a pop-up dialog box asking if you want to take a tour about dashboards. If you take the tour, there is an option at the end of the tour to try dashboards yourself. This option displays the Dashboards view.
- For the Buttercup Games - Purchases dashboard, click the arrow ( > ) symbol in the i column to expand the dashboard information.
- You can see information about the app that this dashboard is associated with, whether or not the dashboard is scheduled, and dashboard permissions.
- The title changes to Edit: Buttercup Games - Purchases to alert you that the panel is in the edit mode.
- Several edit buttons appear on the upper right corner of the view. The buttons are Add Input, Add Panel, and Edit Source.
- The Time range picker input control appears on the dashboard.
- This opens a set of input controls. The Time input type is selected.
- a. For Label, type
- b. For Token, type
- The controls that you add to a dashboard have identifiers called input tokens. This step redefines the name of the input token for the Time range picker. The default names for input tokens are field1, field2, field3, and so on. You can change the input tokens when you add controls to your dashboard. Naming the tokens makes it easier to understand which input you are working with. In this example you used a token name that includes the a short version of the dashboard title.
- c. For Default, change the default time range to Previous week.
- d. Click Apply.
- The input controls that you add to a dashboard are independent from the dashboard panels. If you want the chart on the panel to refresh when you change the time range, you need to connect the dashboard panel to the Time range picker input control.
- The panel is now connected to the Time range picker input control in the dashboard. This Time range picker is referred to as the shared Time range picker. The inline search that powers the panel now uses the time range that is specified in the shared Time range picker.
Add controls to a dashboard
You can add input controls, such as the Time range picker, to dashboard panels.
1. In the Dashboards list, click Buttercup Games - Purchases to display that dashboard.
2. Click Edit, and select Edit Panels.
3. Click Add Input, and select Time.
4. Click the Edit Input icon for the Time range picker. The icon looks like a pencil.
5. In the dashboard panel, click the Inline Search icon, which looks like a magnifying glass.
6. Click Edit Search String.
7. In the Edit Search dialog box, for Time Range Scope select Shared Time Picker (BG_Purchases_Time_Range).
8. Click Save.
You can have dashboards that contain a mix of panels. Panels that are connected to the shared Time range picker, and panels that show data for the time range specified in the search that the panel is based on. You will learn more about connecting other panels to the shared time picker in the next section.
9. In the upper right corner of the view, click Done to save your changes to the dashboard.
Learn about adding more panels to a dashboard.
About the Dashboard Editor in Dashboards and Visualizations
Add more panels to dashboards
This documentation applies to the following versions of Splunk® Enterprise: 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6, 6.4.7, 6.4.8, 6.4.9, 6.4.10, 6.4.11