Deployment Architecture

How can I get Splunk index daily data volume size for specific index?

raindrop18
Communicator

how can I get Splunk index daily data volume size for a specific index?

thanks,

Labels (1)
Tags (1)
0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try this to get license usage in GB for your index(run on License Server, can run on search heads if you forward your license server internal logs to your indexers)

index=_internal sourcetype=splunkd component=LicenseUsage idx="YourIndexHere"
| timechart span=1d sum(b) as Usage | eval Usage=round(Usage/1024/1024/1024,2)

View solution in original post

inderjot_rasila
Explorer

This query also gives desired output

index="_internal" source="*metrics.log" per_index_thruput series="idxname"
| bin _time span=1d
| eval GB=kb/(1024*1024)
| stats sum(GB) as total by series _time

When I use above query and compare its output with query mentioned in first answer I see a small variation in results.

May be an expert can advice on this.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try this to get license usage in GB for your index(run on License Server, can run on search heads if you forward your license server internal logs to your indexers)

index=_internal sourcetype=splunkd component=LicenseUsage idx="YourIndexHere"
| timechart span=1d sum(b) as Usage | eval Usage=round(Usage/1024/1024/1024,2)

vinod743374
Communicator

I am Getting only a few days back Data,
How Can i Get Last 60 Days of ingested Data

I am Using Splunk Enterprise...

Can anyone Help us!!!

0 Karma

raindrop18
Communicator

thanks much!!

0 Karma

inderjot_rasila
Explorer

The answer works perfect!
I have one question I can get same using below query:

index="_internal" source="*metrics.log" per_index_thruput series="idxname"
| bin _time span=1d
| eval GB=kb/(1024*1024)
| stats sum(GB) as total by series _time

When I use above query and compare its output with query mentioned in answer I see a small variation in results.

Should both results not match?

0 Karma

saharzare
Engager

I used this query for getting daily data ingest

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" type=Usage |  eval GB = b/1024/1024/1024 |timechart span=1d sum(GB)

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...