How to do it...

Follow the steps in this recipe to identify abnormally-sized web requests:

  1. Log in to your Splunk server.
  2. Select the Operational Intelligence application.
  3. Ensure the time range picker is set to Last 24 Hours, and type the following search into the Splunk search bar. Then, click on the search button or hit Enter:
index=main sourcetype=access_combined | eventstats  mean(bytes) AS mean_bytes, stdev(bytes) AS stdev_bytes |  eval Z_score=round(((bytes-mean_bytes)/stdev_bytes),2) |  where Z_score>1.5 OR Z_score<-1.5 | table _time, clientip,  uri, bytes, mean_bytes, Z_score 
  1. Splunk will return the results in a tabulated form, similar to the following example:
  1. Let's save this search as a report. Click on Save As and choose

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.