Splunk Search

How to determine amount of data from a given host

mlevenson
Explorer

Been poking around and trying to figure out how to pull up how much data has been sent from a specific host.

For example host 123 is sending CPU data every 10sec, how much data is that over the course of time = "X"

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

This should do it - this shows how much data has been indexed from various hosts

index=_internal source=*metrics.log group="tcpin_connections" 
| eval sourceHost=if(isnull(hostname), sourceHost,hostname)
| stats sum(kb) as KB by sourceHost | eval KB = round(KB)

View solution in original post

lguinn2
Legend

This should do it - this shows how much data has been indexed from various hosts

index=_internal source=*metrics.log group="tcpin_connections" 
| eval sourceHost=if(isnull(hostname), sourceHost,hostname)
| stats sum(kb) as KB by sourceHost | eval KB = round(KB)
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 ...