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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...