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!

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