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!

Building Reliable Asset and Identity Frameworks in Splunk ES

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

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...