Dashboards & Visualizations

How to Ignore few hosts in a search

Ash1
Communicator

Hi all, we have around 8 dashboards fetching data from same index.  There are around 150 hosts with this index, but we don't want to see the data from particular 50 hosts in a dashboard.  how this can be done???
Any inputs on this please???

 

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Ash1 ,

if you need to exclude many hosts (like 509 from your search the best solution is the one from @burwell : a lookup containing the host list.

If instead they are three or four, you can also insert them in each search or create a macro to excude them.

Ciao.

Giuseppe

0 Karma

burwell
SplunkTrust
SplunkTrust

If you always want to ignore the same hosts each time, you could create a lookup file with names of the hosts and use a search as described in this post: https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-IP-s-not-in-a-lookup-table/m-p/3...

Something like

index=myindex NOT [|inputlookup mylookup.csv | fields host]

 

Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...