How to do it...

Follow the steps in this recipe to leverage summary indexing and to backfill the number of purchases by city:

  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 24 hours:
index=main sourcetype=log4j requestType="checkout" | iplocation ipAddress | fillnull value="Unknown" City  | replace "" with "Unknown" in City | stats count AS Purchases by City
  1. Splunk should now display the results of the search, similar to the results shown in the following screenshot:
  1. Click on the Save As dropdown and select Report from the list: ...

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.