Monitoring Splunk

How to find how much storage is used from logs?

xwang333
Engager

I have a index which would return logs. I would like to know how much storage is used for logs in a specific time range. How could I write the query or do this from UI? Thanks.

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no log that contains that information. The closest you can get is the dbinspect command.

| dbinspect index=foo | stats sum(sizeOnDiskMB) as DiskMB

The command looks at buckets rather than events so the storage size given may include data outside the specified time range.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...