Module 2: Index Management Flashcards
Splunk stores data in ___, which are organised in directories and files in disk.
indexes
What are the features of a Splunk index?
- Indexes are stored in $SPLUNK_HOME/var/lib/Splunk
- the directory location is customisable for each index
- Indexes contain raw data and index files
- Indexes can be created by an admin
- There are many prebuilt indexes such as_internal, _audit and main.
What is inside a Splunk index?
- Raw data stored in a compressed format
- Tdsidx files - time series index files that point to the raw data
- Metadata – files such a sources.data, sourcetypes.data and hosts.data
Indexes store data in ___. __ are a set of directories organised by age.
Buckets
What are the bucket types?
Bucket types are hot, warm, cold. froze, thawed
Hot buckets
- newest data
- open for read and write
- can be more than one hot bucket in an index
- searchable
- roll to warm when reaching certain size, or upon a Splunk restart
Warm buckets
- created when hot buckets roll
- not open for writing, but searchable
- reside in the same directory as hot buckets but renamed
- roll to cold buckets when exceeding max setting.
Cold buckets
- Starting from the oldest bucket (based on time), warm buckets roll to cold
- Reside in different directory from hot and warm
- Searchable
- The directory location can be configured
- Possible to save cost by using cheaper storage.
Frozen buckets
- After cold buckets age out based on policy, the roll to frozen
- Default action is to delete, but can be configured to archive.
- coldToFrozenDir or coldToFrozenScript in indexes.conf configures archiving
- Archived frozen buckets are not searchable
Thawed buckets
- Frozen buckets can be thawed
- Thawed buckets are rebuilt into index and searchable
- Location can be configured in indexes.conf
- No age restriction
- Use Splunk rebuild command to rebuild data into the index
Where is the bucket location of hot/warm buckets?
$SPLUNK_HOME/var/lib/Splunk/indexname/db
Where is the bucket location of cold buckets?
$SPLUNK_HOME/var/lib/Splunk/indexname/colddb
Where is the bucket location of frozen buckets?
• Frozen buckets are deleted by default. Can be optionally archived
Where is the bucket location of thawed buckets?
$SPLUNK_HOME/var/lib/Splunk/indexname/thaweddb
How are hot buckets named?
hot_v1_