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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...