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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...