Splunk Search

Exclude IP Ranges for searches

asarolkar
Builder

I have a search like this:

sourcetype="access_combined"  /organizations/*/profitPercentage/profitValue POST 200

I am trying to get a cumulative sum of orgs ( in the log entry * replaces the organization Name)

I would like to exclude from this search (which is looking at access logs essentially) certain IP ranges. Its easy to simply append | where clientip NOT XXX.XX.XX.XX if it was just ONE IP.

In my case there's ranges, 6 of them actually. How would I go about that ?

For example, i need to exclude everything between 134.26.88.20 to 134.26.88.68 (and then similarly for 5 other such ranges). How would I go about that ?

Tags (3)
0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...