Module 4 - Config Files Flashcards
Confit folder
SPLUNK_HOME/etc
Ways to modify Splunk configuration
Splunk web
Splunk CLI
By editing .conf files
Common Splunk config files on Search head
props.conf
Search-time Field Extractions, lookups, etc
Common Splunk config files on Indexer
props.conf - parsing
Inputs.conf - What data is collected; Which ports to listen to
Common Splunk config files on forwarder
outputs.conf - where to forward data
props.conf - limited parsing
inputs.conf - what data is collected
Files in default directories
Files should Never be modified
Make copy to local folder and edit settings
Default vs local config
Default is Overwritten on update
Local
- keep my changes
- Preserved on update
- Only modify these versions
- Overrides default setting
Merging config files
When Splunk is running it merges config files Into a single run-time model for each
file type
– As a union of all files if no duplicates/conflicts exist
• In case of conflicts priority is based on the context:
– Global context (index-time)
– App/User context (search-time
Index time precedence (global context)
- System local directory
etc/system/local - App local directories*
etc/apps/appname/local - App default directories*
etc/apps/appname/default - System default directory
etc/system/default
Search time precedence (App/User context)
1.Current user directory for app
etc/users/user/appname/local
2. App directory - running app
etc/apps/appname/local
etc/apps/appname/default
3. App directories - all other apps*
etc/apps/appname/local
etc/apps/appname/default
4. System directories
etc/system/local
etc/system/default
Setup receiving port
./splunk enable listen 9997 [-app name]
SPLUNK_HOME/etc/apps/app_name/local/inputs.conf
[splunktcp://9997]
connection_host = ip
If no app name specifies it will be defined under search app
Index creation
./splunk add index index_name [-app app_name]
SPLUNK_HOME/etc/apps/app_name/local/indexes.conf
[test]
coldPath = $SPLUNK_DB/test/colddb
enableDataIntegrityControl = 0
enableTsidxReduction = 0
homePath = $SPLUNK_DB/test/db
maxTotalDataSizeMB = 512000
thawedPath = $SPLUNK_DB/test/thaweddb
If no app name specified it will be added to search app
Which configuration file tells a Splunk instance which data to ingest?
inputs.conf lists data inputs, or in some cases which network ports to listen on for data inputs.
What’s the function of outputs.conf
outputs.conf lists where input data should be sent (for example from forwarders to indexers).
What’s the function of props.conf
props.conf lists processing properties for data input