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!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...