Splunk Search

How to edit my stats search to get a sum of bytes per app and total sum for all traffic?

ethanrulez80
New Member

I currently get events that shows bytes received from a router. What I'm trying to do is use stats to obtained a sum of all traffic, then categorize traffic by apps.

Example:

Table:

| Sum of Bytes        | 999
| Sum of Http Bytes   |  89
| Sum of VoIP Bytes   | 910

What my search looks like:

index=* | stats sum(Bytes) ,sum(Bytes) where [interface]="A" , sum(Bytes) where [interface]="B"
0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

your base search | stats sum(Bytes) as Bytes by interface | addcoltotals labelfield=interface label="All Interfaces"

View solution in original post

0 Karma

somesoni2
Revered Legend

Try like this

your base search | stats sum(Bytes) as Bytes by interface | addcoltotals labelfield=interface label="All Interfaces"
0 Karma
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 ...