Getting Data In

Query for host not sending sourcetype

diegosainz
Path Finder

I am trying to find out how to identify which host(s) are not sending a particular datasource. Is there a query to identify this?

Tags (3)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

There's a query for virtually everything 🙂

I'd go along this path: Compute a list of all your hosts and subtract the list of hosts sending the particular sourcetype... something like this:

| metadata type=hosts index=* | fields host | search NOT [search index=* sourcetype=particular | fields host | dedup host]

Note, replace index=* if you only want to search a specific set of indexes.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

There's a query for virtually everything 🙂

I'd go along this path: Compute a list of all your hosts and subtract the list of hosts sending the particular sourcetype... something like this:

| metadata type=hosts index=* | fields host | search NOT [search index=* sourcetype=particular | fields host | dedup host]

Note, replace index=* if you only want to search a specific set of indexes.

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...