How to do it...

Follow these steps to display the unique number of website visitors:

  1. Log in to your Splunk server.
  2. Select the default Search & Reporting application.
  3. Ensure that the time range picker is set to Last 24 hours, and type the following search into the Splunk search bar. Then, click on Search or hit Enter:
index=main sourcetype=access_combined | stats  dc(JSESSIONID)
  1. Splunk will return a single value that represents the distinct count (unique) of values in the field named JSESSIONID.
  2. Click on the Visualization tab.
  3. As there are a number of visualizations within Splunk, the Single Value visualization might not be displayed by default within the Visualization tab. Click on the dropdown that lists the visualization types and select ...

Get Splunk Operational Intelligence Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.