Splunk Search

not equal values in a dataset

moayadalghamdi
Path Finder

Hello splunker, i want to write an SPL to list email senders excluding emails in a predefined lookup table.

 

here's my command:

index=email eventtype="email-events" action=delivered [ | inputlookup group_service_emails_csv.csv| fields Emails | where sender != Emails]

please help me with it, Thanks

 

Labels (3)
0 Karma
1 Solution

moayadalghamdi
Path Finder

i found the answer, just write NOT infrot of the lookup search, like this and modify the  WHERE to RENAME:

 

 

index=email eventtype="email-events" action=delivered  NOT [ | inputlookup group_service_emails_csv.csv| fields Emails | rename Emails as sender ]

View solution in original post

0 Karma

moayadalghamdi
Path Finder

i found the answer, just write NOT infrot of the lookup search, like this and modify the  WHERE to RENAME:

 

 

index=email eventtype="email-events" action=delivered  NOT [ | inputlookup group_service_emails_csv.csv| fields Emails | rename Emails as sender ]

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...