Splunk Search

Is there a way to get Sum BytesSent by IP?

splunkcol
Builder

I need to get the list of the IPs that have generated the most outgoing traffic.

When the query is generated I find that there are multiple records for the same IP.

Is there any way to get a total of GB for each IP?

Thank you

splunkcol_0-1657318307441.png

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @splunkcol,

are you speaking of the same source IP I suppose, so you could run something like this:

index=your_index
| stats sum(GB) as GB by SourceIP
| sort -GB

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @splunkcol,

are you speaking of the same source IP I suppose, so you could run something like this:

index=your_index
| stats sum(GB) as GB by SourceIP
| sort -GB

Ciao.

Giuseppe

yuanliu
SplunkTrust
SplunkTrust

Instead of "count by GB, SourceIP, DestinationIP", do

| stats sum(GB) as GB count by SourceIP DestinationIP

 

Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...