Splunk Search

Find size (in bytes?) of search results

thepocketwade
Path Finder

I'm running a search that compiles its results in a table by source and displays the number of logs per source. I'm trying to also find the total size of the logs by source. Is this possible? I've tried using eval length=len(_raw), but that only gives the length of each individual log.

Tags (1)
1 Solution

Ron_Naken
Splunk Employee
Splunk Employee
* | eval l=len(_raw) | stats sum(l) count by source

View solution in original post

Ron_Naken
Splunk Employee
Splunk Employee
* | eval l=len(_raw) | stats sum(l) count by source

thepocketwade
Path Finder

Thanks, I knew it would turn out to be something simple I was missing

0 Karma
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 ...