Getting Data In

list of hosts for a given time range

MBerikcurtis
Path Finder

I'm sure there is a better way. I'm trying to get a list of hosts for a given time range. The search I'm using now is

host=* | table host

this can take a long time to run dependent on the time range I'm looking at.

Tags (1)
1 Solution

_d_
Splunk Employee
Splunk Employee

You can use either of these, depending on what you'd like displayed:

| metadata type=hosts | table host

OR

| metadata type=hosts | stats count by host

Hope this helps.

> please upvote and accept answer if you find it useful - thanks!

View solution in original post

_d_
Splunk Employee
Splunk Employee

You can use either of these, depending on what you'd like displayed:

| metadata type=hosts | table host

OR

| metadata type=hosts | stats count by host

Hope this helps.

> please upvote and accept answer if you find it useful - thanks!

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...