Splunk Search

How to search for Dst_ip and Src_ip NOT in lookup table?

7ryota
Explorer

Hi,

I need your help

i have a lookup table as vcs_ip.csv. inside the table, i have a column named as ip. This table is for all the allowed traffic.

How to i construct a query to search for Dst_ip and Src_ip NOT found in the vcs_ip.csv under ip column

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

hi @7ryota,

please try something like this:

<your_search> NOT ( [ | inputlookup vcs_ip.csv | rename ip AS Dst_ip | fields Dst_ip ] OR [ | inputlookup vcs_ip.csv | rename ip AS Src_ip | fields Src_ip ] ) 

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

hi @7ryota,

please try something like this:

<your_search> NOT ( [ | inputlookup vcs_ip.csv | rename ip AS Dst_ip | fields Dst_ip ] OR [ | inputlookup vcs_ip.csv | rename ip AS Src_ip | fields Src_ip ] ) 

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...