Splunk Search

Need to get splunk server names with host count

kpavan
Path Finder

Hi All,

Need to get the host count with splunk_server names by using the search queries, i have used below but its giving the all the events

index=main sourcetype="WinEventLog:Security" host=* splunk_server=*

Thanks

Tags (1)
0 Karma

strive
Influencer

Try this

index=main sourcetype="WinEventLog:Security" | stats count(host) by splunk_server
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...