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
Happy Splunking!

View solution in original post

renjith_nair
Legend

Try this

<your search to get details> | stats sum(<your data amount field> by domain
Happy Splunking!
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...