Splunk Search

How to edit my search to filter out results that are present in lookup tables?

benmon
Explorer

Hi,

I need to filter the results that are present in the lookup tables. This search is what I have used:

index=* sourcetype="pan:threat" action=allowed | stats count(threat_name) by threat_name NOT [|inputlookup paloaltosignature | table signatures | rename signatures as threat_name]

but there are no results. I have checked the search separately and it is working.
Can somebody tell me what is the problem with the search?
Regards,

0 Karma

sundareshr
Legend

You are missing a search command before the NOT. Try this

index=* sourcetype="pan:threat" action=allowed | stats count(threat_name) by threat_name | search NOT [|inputlookup paloaltosignature | table signatures | rename signatures as threat_name]
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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