Getting Data In

How do we get list of forwarders and sourcetypes?

hemant_asnani
New Member

Could someone please help me with getting list of forwarders and sourcetypes for splunk?

Tags (1)
0 Karma

somesoni2
Revered Legend

lukejadamec
Super Champion

This will give you a list of hosts:
index=_internal source="C:\\Program Files\\Splunk\\var\\log\\splunk\\metrics.log" group=per_host_thruput|dedup series|table series|rename series AS Host

This will give you a list of sourcetypes:
index=_internal source="C:\\Program Files\\Splunk\\var\\log\\splunk\\metrics.log" group=per_sourcetype_thruput |dedup series|table series|rename series AS Sourcetype

Both of these searches are fast, but I've not figured out a way to combine them to get a list of sourcetypes per host.

This search will give you a list of sourcetypes by host, but it can be slow. One way to make it faster is to run the search in Fast Mode:

index="*" NOT index=_internal |fields + host sourcetype| dedup host sourcetype|table host by sourcetype

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...