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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...