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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...