Splunk Search

How do I exclude a subnet from a search using CIDR notation?

jlawsonmers
New Member

How do I exclude a subnet from a search using CIDR notation? For example, I have this search:

"%ASA-4-733100" OR "%ASA-4-733104" OR "%ASA-4-733105" NOT "[ Scanning]" NOT "[   172.16.10.2]" NOT "[           DNS   53]" NOT "[  NetBIOS-Name  137]"

I would like to exclude 192.168.0.0/16 from this search. What is a simple way to do this?

Tags (1)
0 Karma

kristian_kolb
Ultra Champion
0 Karma

jlawsonmers
New Member

Should I use NOT "host_ip=192.168.0.0/16" or should I leave off the quotation marks?

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...