Book Image

Splunk Operational Intelligence Cookbook

Book Image

Splunk Operational Intelligence Cookbook

Overview of this book

Table of Contents (17 chapters)
Splunk Operational Intelligence Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Alerting on abnormal user behavior


In this recipe, you will write a relatively simple real-time per-result type of alert to look for abnormal user behavior. The abnormal behavior you will be looking for would be successful payments that did not go through the checkout process.

Getting ready

To step through this recipe, you will need a running Splunk Enterprise server, with the sample data loaded from Chapter 1, Play Time – Getting Data In. You should be familiar with navigating the Splunk user interface. You should also have configured the e-mail settings on your Splunk server to enable the delivery of e-mail alerts.

How to do it...

Follow the steps in this recipe to create an alert when abnormal user behavior occurs:

  1. Log in to your Splunk server.

  2. Select the Operational Intelligence application.

  3. In the Search bar, enter the following search over Last 24 hours:

    index=main sourcetype=log4j requestType=checkout (numberOfItems>10  OR total>3000)
    | table ipAddress, numberOfItems, total, invoice...