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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...