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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...