Splunk Search

Can I determine the size of a source without reading the entire source?

a212830
Champion

Hi,

I'd like to determine the size of certain sources, but don't want the overhead of reading the entire file. Is there a way to do this?

0 Karma

sloshburch
Splunk Employee
Splunk Employee

If it's already indexed (I can't tell from the post) you could use the license_usage.log to see how large the source was.

0 Karma

woodcock
Esteemed Legend

somesoni2
Revered Legend

You can use a scripted input which will run frequently and capture and send file size to splunk.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...