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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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