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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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