Getting Data In

how can I get Hostnames anits respective IP address through a query.For e.g (index=winlog | Stats count by host) only returns hostnames .I would like the hostname and IP address

simonselvin2019
Explorer

how can I get Hostnames anits respective IP address through a query.For e.g (index=winlog | Stats count by host) only returns hostnames .I would like the hostname and IP address by modifying the search.

0 Karma

simonselvin2019
Explorer

This doesn't work

0 Karma

wmyersas
Builder

What "doesn't work"?

0 Karma

wmyersas
Builder

Add more grouping fields to your stats call:

index=ndx sourcetype=srctp
| stats count by host ip
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...