Creating a dashboard in the Splunk Metrics Workspace
Your team runs the online store for buttercupgames.com. This website sells games online and tracks system metrics and logs from its online credit card payment service.
To get the most insight from your metrics, you want to set up a dashboard to monitor this data in real time.
You have the following metrics:
- Number of transactions over time
- Overall revenue over time
- Number of errors for the store and payment service
View each of your metrics as time series in the Metrics Workspace. Then save the charts to a dashboard in Splunk.
- View number of transactions over time
- View overall revenue over time
- View number of errors for the store and payment service
- Save the workspace to a dashboard
View number of transactions over time
- In the Data panel, search or browse for the
posted_paymentsdataset. This dataset contains the payment logs from your credit card payment provider.
- Select the
transaction_idfield to create a chart.
- In the Analysis panel, select the Count aggregation. Note that because the
transaction_iddataset field is a string, the only available aggregations are Count and Distinct count.
View overall revenue over time
- In the Data panel, select the
amountfield from the
posted_paymentsdataset. This creates a chart of your revenue.
- In the Analysis panel, change the aggregation to Sum. The chart updates to show your aggregated total revenue over time.
View number of errors for the store and payment service
- In the Data panel, search for
err. The data hierarchy filters to include only data sources with names that contain
- Select the
err_countmetric to create a chart.
- In the Analysis panel, under Split By, select the
pagedimension. This splits the chart to show errors by page.
- Under Filters, click + Add New Filter. Select the
pagedimension. Then select the
reviewpages. The chart shows errors from these three pages.
Save the workspace to a dashboard
- From the global actions bar, click the icon and select Save all charts to a dashboard.
- Enter the dashboard details. Leave the Add interactive time control option selected, so that you can adjust the time range later.
- Click Save.
You now have a dashboard that monitors number of transactions over time, overall revenue over time, and number of store and payment service errors. To view your dashboard, click the Dashboard tab on the Search & Reporting bar. Then select the dashboard from the list.
For more information about dashboards in the Splunk platform, see the Dashboard overview in the Dashboards and Visualizations Manual.
For more information about dashboards in the Metrics Workspace, see Dashboards in the Splunk Metrics Workspace.
Analyzing data in the Splunk Metrics Workspace
Hardware and software requirements for the Splunk Metrics Workspace
This documentation applies to the following versions of Splunk® Metrics Workspace: 1.0.0, 1.0.1, 1.1.6