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
SplunkTrust
SplunkTrust

@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
SplunkTrust
SplunkTrust

@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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...