Module 4 - Config Files Flashcards

1
Q

Confit folder

A

SPLUNK_HOME/etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Ways to modify Splunk configuration

A

Splunk web
Splunk CLI
By editing .conf files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Common Splunk config files on Search head

A

props.conf

Search-time Field Extractions, lookups, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Common Splunk config files on Indexer

A

props.conf - parsing

Inputs.conf - What data is collected; Which ports to listen to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Common Splunk config files on forwarder

A

outputs.conf - where to forward data

props.conf - limited parsing

inputs.conf - what data is collected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Files in default directories

A

Files should Never be modified

Make copy to local folder and edit settings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Default vs local config

A

Default is Overwritten on update

Local
- keep my changes
- Preserved on update
- Only modify these versions
- Overrides default setting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Merging config files

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Index time precedence (global context)

A
  1. System local directory
    etc/system/local
  2. App local directories*
    etc/apps/appname/local
  3. App default directories*
    etc/apps/appname/default
  4. System default directory
    etc/system/default
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Search time precedence (App/User context)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Setup receiving port

A

./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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Index creation

A

./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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which configuration file tells a Splunk instance which data to ingest?

A

inputs.conf lists data inputs, or in some cases which network ports to listen on for data inputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What’s the function of outputs.conf

A

outputs.conf lists where input data should be sent (for example from forwarders to indexers).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What’s the function of props.conf

A

props.conf lists processing properties for data input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What brook is used for?

A

btool is used to verify Splunk configuration on disk

17
Q

How to verify splunk config in memory

A

use the splunk show config command or REST API.

18
Q

How should an administrator disable the [syslog] stanza attribute TRANSFORMS=syslog-host found in
SPLUNK_HOME/etc/system/default/props.conf?

A

In …/local/props.conf set TRANSFORMS= (to a blank value) to disable it