Splunk Dev

Get list of VM's from splunk

vj5
New Member

Is there a way to get the list of VM's which is forwarding data to the Splunk ?

Tags (1)
0 Karma

fferozbasha
Explorer

index=_internal sourcetype=splunkd host= group=per_host_thruput | fields series | stats values(series) as hosts

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

Try

|metadata type=hosts|table host
Happy Splunking!
0 Karma

fferozbasha
Explorer

this will list out NOT just the hosts sending data BUT also our own host details such as Search head, indexers, Heavy weight forwarders

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

If you need specifically UFs, then you could use below but the search will be slow.

index="_internal" source="*metrics.log*" group=tcpin_connections  fwdType=uf |stats count by hostname|fields - count
Happy Splunking!
0 Karma

adonio
Ultra Champion

sure,
how does these vms send data to splunk?
try this:
| tstats max(_time) as last_event where index=* by host
that will give you the last time (in epoch) a host (maybe a vm) reported to splunk

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...