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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...