Example :
Uncompressed = 100GB; Compressed = 40GBUncompressed Size (Original Data): This is the size of the data before any compression is applied. When you index data in Splunk, it captures raw events, which can include log messages, metrics, or other types of data.
Compressed Size (Indexed Data): After the raw data is ingested, Splunk applies compression techniques to reduce its size before storing it in the index. The compressed size represents the space required to store the indexed data.
Compression ratio calculation:
Compression Ratio = (Uncompressed Size)/(Compressed Size)
A higher compression ratio indicates more efficient compression, meaning that Splunk is effectively reducing the storage requirements for the indexed data.
To examine the raw_Total_MB, disk_Total_MB, and compression ratio, run this SPL query (update <index_name> as required) in order to confirm the compression ratio:
| dbinspect index=<index_name>
| fields state,id,rawSize,sizeOnDiskMB
| stats sum(rawSize) AS rawTotal, sum(sizeOnDiskMB) AS disk_Total_MB
| eval raw_Total_MB=(rawTotal / 1024 / 1024) | fields - rawTotal
| eval compression=tostring(round(disk_Total_MB / raw_Total_MB * 100, 2)) + "%"
| table raw_Total_MB, disk_Total_MB, compression
Estimate your storage requirements
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |