Use WORM (Write Once Read Many) volumes for Splunk's datastore
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Contents
Use WORM (Write Once Read Many) volumes for Splunk's datastore
Configure Splunk to use WORM (Write Once Read Many) volumes for its indexes by editing indexes.conf. Edit this file in $SPLUNK_HOME/etc/system/local/, or your own custom application directory in $SPLUNK_HOME/etc/apps/. For more information on configuration files in general, see how configuration files work.
Note: To use WORM volume for indexes, you must configure Splunk to push data to its warm, and cold databases differently.
In a typical Splunk index configuration (with multiple-write disks), Splunk manages its indexes by reading and writing into the hot database. It then pushes data to the warm database, where it is written and read multiple times. Finally, it pushes data to the cold database, where is it written once and stored until it is pushed to frozen.
In a write-once setup, data from the index never goes to the warm database. Data goes from hot directly to the cold database because it is written once and never required to be written again.
Configuration
- Determine data retention specifications.
- Next, figure out how much data you will be passing into Splunk. 500MB/day? 50GB/day?
- Use that information to determine the size and number of buckets in your indexes (example: 20GB/day retained for 30days = 60 buckets). This is how many buckets you will need in your cold database.
- Next, edit the following attributes/values in
indexes.conf:
[<index name>] maxWarmDBCount = 0 maxColdDBCound = <number of buckets>
- Set
maxWarmDBCount = 0to keep data from going into the warm database (failure to do so will cause Splunk to crash in a WORM configuration). - Set
maxColdDBCountto a number greater than the anticipated number of buckets. - Mount your WORM to the location of the cold database. Set the path to:
$SPLUNK_HOME/var/lib/splunk/defaultdb/cold.
This documentation applies to the following versions of Splunk: 3.3 , 3.3.1 , 3.3.2 , 3.3.3 , 3.3.4 , 3.4 , 3.4.1 , 3.4.2 , 3.4.3 , 3.4.5 , 3.4.6 , 3.4.8 , 3.4.9 , 3.4.10 , 3.4.11 , 3.4.12 , 3.4.13 , 3.4.14 View the Article History for its revisions.