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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

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