Splunk Search

match range of ip

AdrienW
Explorer

Hi all,

I have some logs with a field called "src" containing ip.
I would like to use the command "match" like :

if(match(src,"^172.16") but with a range of IP (172.16 to 172.31)

How I could do that?

Thank you

Tags (1)
0 Karma
1 Solution

Ayn
Legend

cidrmatch("172.16.0.0/12",src) ?

View solution in original post

Ayn
Legend

cidrmatch("172.16.0.0/12",src) ?

AdrienW
Explorer

Thanks, I didn't know this function, work great !

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...