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 🙂
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...