How to do it...

Follow these steps to use a pie chart to show the most accessed web pages:

  1. Log in to your Splunk server.
  2. Select the default Search & Reporting application.
  3. From the menu bar, click on the Reports link. This will display a list of all the reports we created and saved in Chapter 2, Diving into Data - Search and Report, as shown in the following screenshot:
  4. Locate the report line item named cp02_most_accessed_webpages and click on Open in Searchas shown in the following screenshot:
  5. Splunk will run the saved report with the search outlined in the following code. This will return a list of pages together with a count field that totals the number of times each page has been accessed.
  6. On completion of the search, the results will be displayed within the Statistics tab. As we will be creating a pie chart, click on the Visualization tab, as shown in the following screenshot:
  7. As there are a number of visualizations within Splunk, the Pie visualization may not be displayed by default within the Visualization tab. Click on the dropdown to list the visualization types and then select Pie Chart, as shown in the following screenshot:
  1. Now, the data will be visualized as a pie chart, as shown in the following screenshot:
  1. Next, save the updated Report by clicking the Save link and then click the Save button in the form that pops up, then click ContinueEditing, as shown in the following screenshot:
  1. Let's add it to the Website Monitoring dashboard you created in the first recipe. Click on Save As, and then, from the drop-down menu, click on Dashboard Panel, as shown in the following screenshot:
  1. The Save As Dashboard Panel screen will pop up. Select Existing to use an existing dashboard, and select the Website Monitoring dashboard from the list. For Panel Title, enter Most Accessed Webpages and select for the panel to be powered by a report. Then, click on Save, as shown in the following screenshot:
  1. The next screen will confirm that the dashboard has been created and the panel has been added. Click on View Dashboard to see for yourself: