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!

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 ...