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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...