Splunk Search

Summary by domains and data size

kestasm
Path Finder

Hello Splunkers,

I have this query which looks for HTTPS connections on web proxy layer made by users when there is specific amount of data sent out to external sites. Right now for every match I get a separate line of log. How could I format my results to get amount of data sent only for the different domains. As an example, if I have right now:
domain1 500bytes
domain1 400bytes
domain1 10000bytes
domain2 480bytes
domain2 4000bytes

Instead i'd like to get:
domain1 10900bytes
domain2 4480bytes

Thanks.

Tags (1)
0 Karma
1 Solution

renjith_nair
Legend

Try this

<your search to get details> | stats sum(<your data amount field> by domain
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

renjith_nair
Legend

Try this

<your search to get details> | stats sum(<your data amount field> by domain
---
What goes around comes around. If it helps, hit it with Karma 🙂
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...