How to do it...

Follow these steps to leverage summary indexing in calculating an hourly count of sessions versus the completed transactions:

  1. Log in to your Splunk server.
  2. Select the Operational Intelligence application.
  3. From the search bar, enter the following search and select to run over Last 60 Minutes:
index=main sourcetype=log4j | stats dc(sessionId) AS  Sessions, count(eval(requestType="checkout")) AS  Completed_Transactions
  1. Splunk should now display results similar to the following:
  1. Click on the Save As dropdown and select Report from the list:
  1. In the pop-up box that gets displayed, enter cp09_sessions_transactions_summary ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.