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!

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