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!

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...

What's New in Splunk Cloud Platform 9.2.2406?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2406 with many ...

Enterprise Security Content Update (ESCU) | New Releases

In August, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...