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!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...