Module 4: Splunk Configuration Files Flashcards

1
Q

What are the features of configuration files? (.conf)

A
  • Govern aspects of Splunk functionality
  • Text files using a generally case-sensitive [stanza] and attribute = value format
  • Saved under $SPLUNK_HOME/etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two ways to learn about conf files?

A
  • Readme files - $SPLUNK_HOME/etc/system/README

* Spec files on Splunk docs

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

What is a Splunk app?

A
  • way of organising configuration files,
  • directory under Splunk_home/etc/apps. E.g search and reporting is stored under Splunk_home/etc/apps/search
  • an add-on is an app that usually does not contain GUI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When editing conf files, it is best practice to only amend the ___ directory.

A

local

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

What is meant by index time?

A

global context, such as input/parsing configuration

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

What is meant by search time?

A

App/user scoped, such as a users knowledge object

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

Name the index-time precedence.

A
  1. Etc/system/local
  2. Etc/apps/search/local
  3. Etc/apps/app1/local
  4. Etc/apps/search/default
  5. Etc/apps/app1/default
  6. Etc/system/default
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name the search-time precedence.

A
  1. Etc/users/john/app1/local
  2. Etc/apps/app1/local
  3. Etc/apps/app1/default
  4. Etc/apps/search/local
  5. Etc/apps/search/default
  6. Etc/system/local
  7. Etc/system/default
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If two or more apps have conflicting settings, the app directory name with the __ __ order wins.

A

highest ascii

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

How does Splunk merge conf files?

A
  • Upon startup, Splunk merges configuration files for each type
  • The resulting file combines settings from various directory locations
  • Only one file per file type will be used at run time
  • If there is a conflict, precedence is applied.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the btool command?

A
  • btool is a Splunk command located in splunk_home/bin. It retrieves the on-disk configuration of a Splunk conf file.
  • Syntax = Splunk btool list [options]
  • –debug option shows the exact .conf file location
How well did you know this?
1
Not at all
2
3
4
5
Perfectly