Splunk Search

define two fields for cidrmatch function

rashid47010
Communicator

I want to use the eval function with cidrmatch function like

1- who to mention multip subnets in x field against cidrmatch function.

| eval network-outbound=if(cidrmatch("10...*/8",src), "local", "public")

0 Karma
1 Solution

renjith_nair
Legend

@rashid47010,

Does this work for you ?

| eval network-outbound=if( cidrmatch("10.1.1.0/8",src) OR cidrmatch("10.10.10.0/8",src) OR ..., "local", "public")
Happy Splunking!

View solution in original post

renjith_nair
Legend

@rashid47010,

Does this work for you ?

| eval network-outbound=if( cidrmatch("10.1.1.0/8",src) OR cidrmatch("10.10.10.0/8",src) OR ..., "local", "public")
Happy Splunking!
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...