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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...