Splunk Search

Rest command for Index Size

rashi83
Path Finder

Hi , I am using the below REST command to create 30+ indexes. But they are getting created with default size as 500 GB.
How can I pass argument to restrict the total index size as 5GB?

curl -k -u admin:pass https://localhost:8089/services/data/indexes \
-d name=mymetricsindex \
-d datatype=metric

Tags (1)
0 Karma

uagrawal_splunk
Splunk Employee
Splunk Employee

The below command will work.
curl -k -u admin:pass https://localhost:8089/services/data/indexes \
-d name=mymetricsindex \
-d datatype=metric \
-d maxTotalDataSizeMB=5120

For more attributes refer this: https://docs.splunk.com/Documentation/Splunk/8.0.0/Indexer/Configureindexstorage

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...