Splunk Search

How to calculate size of Index

Anantha123
Communicator

what are the different ways to calculate size of one index ?

looking for solutions other than "licence_usage.log".

Appreciate your help. Thank you.

Labels (1)
Tags (3)
0 Karma

inventsekar
Ultra Champion

Hi @Anantha123 ...

1). on DMC, you can get the index size details. 

2). Using dbinspect command you can get the index size

| dbinspect index=myindex | eval GB=sizeOnDiskMB/1024 | stat sum(GB) 

3). rest command 

| rest /services/data/indexes | stats values(currentDBSizeMB) by title

4) eventcount command:

 

| eventcount summarize=false index=* report_size=true | eval GB=(size_bytes/1024)/1024/1024 | stats sum(GB) by index, server

 

 5) collect command: (not sure of this... pls test this one)

 

|collect index=myindex

 

  

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...