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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...