Getting Data In

Export Host list

aaronwerley
New Member

Looking to see how I would export a list of all hosts which have reported to splunk all time. I can generate the info with * | top hosts limit 10000, however it takes forever to complete... there has to be a faster search as I am not concerned with the total events per host, just looking for a list of hosts.

Tags (1)
0 Karma
1 Solution

bojanz
Communicator

You should be able to see the lists of hosts with the metadata command:

| metadata type=hosts index=*

View solution in original post

bwili
Explorer

You can get a nice ordered list with this:

| metadata type=hosts index=* | stats count by host

bojanz
Communicator

You should be able to see the lists of hosts with the metadata command:

| metadata type=hosts index=*
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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 ...