Getting Data In

How do I list all sources on a specific host?

toomanyedwards
New Member

Hi all, How do I show all sources for a specific host? I can query for a specific host a la: host="myhost" and then hit "source" in the sidebar, but that only shows the top ten sources on that host. I don't know how to see more than that. I have seen an example of how to list all sources for all hosts by host, but that's extremely long running in our environment and not really what we need. I just need to see the sources for specific hosts to verify that our indexing config is setup correctly and the logs that we want to be indexed are showing up as sources. I'm guessing this is any easy one, but I am splunk noob and haven't been able to figure it out. Any help is appreciated. Thanks!

-e

Tags (1)
0 Karma

jonahcofer
Engager
host="hostname" | stats count by source
0 Karma

somesoni2
Revered Legend

This should be the fastest method per my knowledge

|metasearch host="<yourhostname>"

This search will provide following fields:-

host,source,sourcetype,index,splunk_server

From which you can use source field for your requirement.

lukejadamec
Super Champion

The full search would look like this:
|metasearch host="" | dedup source | table source

0 Karma

jrich523
Path Finder

host="abc" | dedup source | table field source

Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...