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!

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

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...