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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...