Courseiva

CCNA Configuration Files Questions

34 questions · Configuration Files · All types, answers revealed

1
MCQeasy

A Splunk admin is reviewing an inputs.conf file and notices a stanza with the attribute 'disabled = 1'. What does this attribute accomplish in this context?

A.It prevents the input from being loaded and started by Splunk.
B.It marks the input as read-only so it cannot be edited through the CLI.
C.It causes the input to send data only to the default index.
D.It reduces the input's priority so other inputs consume resources first.
AnswerA

In inputs.conf, 'disabled = 1' tells Splunk not to activate that input stanza. The input definition remains in the file for reference but is not started or used for data collection. This is commonly used to temporarily turn off an input without deleting its configuration, making it the correct behavior for the attribute in this scenario.

Why this answer

The 'disabled' attribute in inputs.conf acts as an on/off switch for individual input stanzas. When set to 1, Splunk does not start that input, effectively pausing data collection without deleting the configuration. When set to 0 or omitted, the input is active.

This allows admins to temporarily disable inputs during troubleshooting or maintenance and re-enable them later.

Exam trap

The trap here is confusing 'disabled' with settings that control index routing, permissions, or resource priority, when it simply activates or deactivates the input.

2
MCQeasy

A Splunk administrator needs to ensure that a specific sourcetype is assigned to data coming from a particular source path. The administrator wants to define the sourcetype at the forwarder before data leaves the host. Which configuration file should be edited on the universal forwarder?

A.inputs.conf
B.props.conf
C.transforms.conf
D.outputs.conf
AnswerA

inputs.conf defines data inputs such as file monitors and network ports. Each input stanza can include a sourcetype attribute that assigns a sourcetype to data from that specific input. Setting it on the universal forwarder ensures the sourcetype is applied before forwarding, reducing indexer-side processing.

Why this answer

inputs.conf is the correct file for assigning a sourcetype to a specific data input on a universal forwarder. Each input stanza supports a sourcetype attribute that labels the incoming data before it is forwarded. This approach is efficient because the sourcetype is set at the source, avoiding indexer-side guessing.

Exam trap

The trap here is confusing props.conf, which handles parsing and extraction, with inputs.conf, which defines and labels data inputs.

3
MCQhard

If a user creates a configuration in their 'user' directory, how does it compare in precedence to the 'app' directory?

A.Only system settings are higher
B.User precedence is higher
C.They are equal
D.App precedence is higher
AnswerB

Splunk applies configuration precedence from most to least specific: user directories override app directories, which override system defaults. A user-level setting therefore wins over the same stanza in an app, satisfying the requirement to compare their precedence.

Why this answer

User-level configurations generally have the highest precedence, overriding app and system configurations.

4
MCQmedium

You need to modify the default behavior of a Splunk application without editing the files inside the 'default' directory. Where should you create the override file?

A.$SPLUNK_HOME/etc/system/default/
B.$SPLUNK_HOME/etc/apps/app_name/local/
C.$SPLUNK_HOME/etc/users/admin/
D.$SPLUNK_HOME/etc/apps/app_name/default/
AnswerB

The local directory inside the app overrides default settings without modifying shipped files, satisfying the requirement to avoid editing the default directory. Splunk merges configuration with local taking precedence, so your changes persist through upgrades and remain scoped to that specific app.

Why this answer

Best practices dictate that configurations should be overridden in the 'local' directory to prevent loss during updates.

5
Multi-Selectmedium

Which TWO of the following are valid stanza types found in indexes.conf?

Select 2 answers
A.[tcpout]
B.[default]
C.[input]
D.[source::...]
E.[index_name]
AnswersB, E

[default] is a valid global stanza in indexes.conf, applying settings to every index unless overridden by a specific index stanza. It satisfies the question's requirement for a genuine stanza type, unlike per-index or app-level constructs. Splunk processes it first, so it establishes baseline retention, size and path values across all indexes.

Why this answer

Option B, [default], is correct because indexes.conf uses a [default] stanza to define global settings that apply to all indexes unless overridden by a specific index stanza. Option E, [index_name], is correct because indexes.conf is organized around per-index stanzas, where each stanza name is the actual name of an index (for example, [main], [summary], or [my_index]) and contains that index's settings. Option A, [tcpout], is not valid in indexes.conf; tcpout stanzas belong in outputs.conf and configure forwarding destinations.

Option C, [input], is not a valid indexes.conf stanza type; input stanzas are defined in inputs.conf. Option D, [source::...], is not valid in indexes.conf; source-based stanzas are used in props.conf and transforms.conf for source-type and field processing rules.

6
MCQeasy

Which configuration file is used to define index-time field extractions and line-breaking rules?

A.indexes.conf
B.transforms.conf
C.inputs.conf
D.props.conf
AnswerD

props.conf governs index-time parsing: it holds LINE_BREAKER, SHOULD_LINEMERGE and TRANSFORMS settings that split events and route extracted fields before indexing. transforms.conf only defines the regex and destination; props.conf binds those transforms to the sourcetype, satisfying the stem's index-time extraction and line-breaking requirement.

Why this answer

props.conf is the Splunk configuration file that controls how the indexer processes incoming data at index time, including line-breaking rules (LINE_BREAKER, SHOULD_LINEMERGE), timestamp recognition, and field extractions via TRANSFORMS or REPORT. It is specifically designed for parsing and indexing-time transformations, making it the correct choice for defining index-time field extractions and line-breaking rules.

Exam trap

SPLK-1003 often tests the confusion between index-time and search-time configurations, leading candidates to select transforms.conf (which defines the extraction logic but is referenced by props.conf) or inputs.conf (which handles data input, not parsing).

How to eliminate wrong answers

Option A is wrong because indexes.conf defines index properties such as storage paths, retention policies, and max sizes, not data parsing rules. Option B is wrong because transforms.conf defines field transformations and lookups that are referenced by props.conf, but it does not itself contain line-breaking or index-time extraction settings. Option C is wrong because inputs.conf specifies data inputs (e.g., files, ports, scripts) and their initial settings, but not the parsing rules applied at index time.

7
Multi-Selectmedium

A Splunk administrator is configuring a new index and needs to ensure that data is retained for exactly 90 days and then frozen. The administrator also wants to limit the index size to 500 GB. Which TWO settings in indexes.conf must be configured to achieve these requirements? (Choose two.)

Select 2 answers
A.maxTotalDataSizeMB = 512000
B.maxHotBuckets = 10
C.homePath = $SPLUNK_DB/myindex/db
D.frozenTimePeriodInSecs = 7776000
E.coldPath = $SPLUNK_DB/myindex/colddb
AnswersA, D

maxTotalDataSizeMB sets the maximum total size of all buckets in the index in megabytes. 500 GB equals 512,000 MB. When this limit is reached, the oldest buckets are frozen to free space. This setting enforces the size constraint, satisfying the 500 GB limit requirement.

Why this answer

To enforce a 90-day retention, frozenTimePeriodInSecs must be set to 7,776,000 seconds. To cap the index at 500 GB, maxTotalDataSizeMB must be set to 512,000 MB. These settings directly control time-based and size-based retention, ensuring data is frozen when either condition is met.

Exam trap

The trap here is focusing on storage path settings like homePath and coldPath, which are required for index creation but do not control retention or size limits.

8
MCQhard

A Splunk administrator is troubleshooting why a newly created sourcetype is not being assigned to incoming data from a Universal Forwarder. The administrator suspects a configuration conflict. Which command should be used to determine the effective configuration and the file that is providing the sourcetype definition?

A.splunk list config
B.splunk show config props
C.splunk diag --conf
D.splunk btool props list --debug
AnswerD

The btool command with the --debug flag displays the effective configuration for a given file, such as props.conf, and annotates each setting with the file path from which it originates. This directly answers which file is providing the sourcetype definition and helps resolve configuration conflicts, making it the correct tool for this scenario.

Why this answer

The btool command is designed to display the effective configuration by merging settings from all applicable configuration files. Using 'splunk btool props list --debug' shows the merged props.conf and includes the file path for each setting, which is essential for troubleshooting configuration conflicts such as a sourcetype not being applied as expected.

Exam trap

The trap here is confusing diagnostic collection tools like diag with configuration inspection tools like btool, which are used for different purposes.

9
MCQeasy

Which command is used to restart the Splunk service after modifying configuration files?

A.splunk stop-start
B.splunk refresh
C.splunk reload
D.splunk restart
AnswerD

The `splunk restart` command, run from `$SPLUNK_HOME/bin`, stops and starts the splunkd process in one operation, forcing it to reload modified configuration files. This directly satisfies the stem's requirement to restart the Splunk service after config changes, avoiding a separate stop and start sequence.

Why this answer

The command 'splunk restart' is used to restart the Splunk service after modifying configuration files. It stops and starts the Splunk process, ensuring that configuration changes are applied. This is the standard CLI method for a full restart.

Exam trap

SPLK-1003 often tests the difference between 'splunk restart' (full service restart) and 'splunk reload' (targeted configuration reload), leading candidates to choose reload when a full restart is needed.

How to eliminate wrong answers

Option A is wrong because 'splunk stop-start' is not a valid Splunk CLI command; the correct commands are 'splunk stop' and 'splunk start' separately. Option B is wrong because 'splunk refresh' is not a valid command; there is no such CLI verb. Option C is wrong because 'splunk reload' is used to reload specific configurations (e.g., 'splunk reload deploy-server' or 'splunk reload auth') without a full restart, but it does not restart the entire service.

10
MCQmedium

What is the effect of setting 'TRANSFORMS-routing' in props.conf?

A.It invokes a named transform from transforms.conf
B.It routes the data to a specific app
C.It triggers an alert
D.It changes the sourcetype
AnswerA

TRANSFORMS-routing is a props.conf attribute that names a transform stanza defined in transforms.conf, which Splunk then applies to matching events to route them to specific index or source type destinations. It satisfies the stem's requirement by invoking that named transform.

Why this answer

TRANSFORMS-routing in props.conf invokes a named transform defined in transforms.conf, which can then route events to a specific index, sourcetype, or drop them. The transform is referenced by its stanza name, and the routing action is defined within that transform (e.g., using DEST_KEY and REGEX). This is the standard mechanism for index routing and event filtering.

Exam trap

SPLK-1003 often tests the confusion between TRANSFORMS-routing (which invokes a transform to route events) and other props.conf settings like sourcetype or TRANSFORMS-<class> for masking, causing candidates to pick an unrelated action.

How to eliminate wrong answers

Option B is wrong because routing data to a specific app is not what TRANSFORMS-routing does — apps are containers for configurations, and data routing is to indexes, not apps. Option C is wrong because triggering an alert is handled by saved searches and alert actions, not by props.conf transforms. Option D is wrong because changing the sourcetype is done via the 'sourcetype' setting in props.conf or via a transform that sets the MetaData:Sourcetype key, but TRANSFORMS-routing specifically invokes a transform for routing purposes, not for sourcetype assignment.

11
MCQmedium

An administrator needs to configure a Splunk indexer to retain data for 90 days and then delete it. The administrator also wants to ensure that the index does not exceed 500 GB in size. Which configuration file and settings should be used to achieve this?

A.transforms.conf with retentionPeriod and maxSize
B.inputs.conf with retentionDays and maxVolume
C.props.conf with maxDataSize and frozenTimePeriodInSecs
D.indexes.conf with frozenTimePeriodInSecs and maxTotalDataSizeMB
AnswerD

indexes.conf defines index-specific settings. frozenTimePeriodInSecs specifies the age in seconds after which data is frozen (deleted or archived), and maxTotalDataSizeMB sets the maximum size of the index before freezing occurs. Setting frozenTimePeriodInSecs to 7776000 (90 days) and maxTotalDataSizeMB to 512000 (500 GB) achieves the desired retention and size limits.

Why this answer

indexes.conf is the correct file for defining index retention and size limits. frozenTimePeriodInSecs controls how long data is kept before being frozen, and maxTotalDataSizeMB caps the index size. Both settings are essential for meeting the 90-day and 500 GB requirements.

Exam trap

The trap here is confusing index-level settings with input or parsing configurations, leading to the wrong file and invalid setting names.

12
MCQhard

A Splunk administrator is configuring a new forwarder to send data to an indexer. The administrator wants to ensure that the forwarder uses a specific port and that the connection is encrypted. Which file should be edited to set the default target group and enable SSL, and what is the correct stanza name?

A.$SPLUNK_HOME/etc/system/local/inputs.conf with stanza [tcpout]
B.$SPLUNK_HOME/etc/system/local/outputs.conf with stanza [tcpout]
C.$SPLUNK_HOME/etc/system/local/outputs.conf with stanza [tcpout:myindexers]
D.$SPLUNK_HOME/etc/system/local/server.conf with stanza [tcpout]
AnswerB

outputs.conf is where forwarders define target indexers. The [tcpout] stanza sets global defaults such as defaultGroup and ssl settings. To configure a specific port and enable encryption, you edit the [tcpout] stanza and define a target group with server and ssl settings. This file and stanza are correct for this purpose.

Why this answer

To configure a forwarder's output, you edit outputs.conf. The [tcpout] stanza sets global defaults, such as the default group and SSL parameters. Within it, you can specify defaultGroup and ssl settings.

To define the actual indexers, you create a target group stanza like [tcpout:myindexers] with server and ssl settings. The question asks for the default target group and SSL, which are set in [tcpout].

Exam trap

The trap here is confusing the global [tcpout] stanza with a specific target group stanza like [tcpout:myindexers], which is used for per-group settings.

13
MCQhard

If a setting is defined in both $SPLUNK_HOME/etc/system/local/props.conf and $SPLUNK_HOME/etc/apps/my_app/default/props.conf, which one wins?

A.The App/default value
B.The app with the highest priority in app.conf
C.They are merged alphabetically
D.The System/local value
AnswerD

System-level configuration in `$SPLUNK_HOME/etc/system/local/` takes precedence over an app's `default` directory, because Splunk's precedence order ranks system local above app default. This satisfies the stem's conflict: the same stanza and key in both files resolves to the system/local value.

Why this answer

System/local has a higher precedence than App/default.

14
MCQmedium

What is the purpose of the 'TIME_PREFIX' attribute in props.conf?

A.To set the time format
B.To define the timezone
C.To specify the start of the timestamp
D.To truncate the timestamp
AnswerC

TIME_PREFIX tells the Splunk parsing pipeline where the timestamp begins within an event, so it can extract the correct time value when the timestamp does not start the line. This satisfies the stem's requirement by anchoring timestamp recognition to a specific preceding string, enabling accurate event time assignment.

Why this answer

It specifies the regex pattern to locate the start of the timestamp in an event.

15
MCQeasy

A junior administrator wants to change the default maximum size of the internal index (_internal) to prevent it from consuming too much disk space. Which configuration file and stanza should they edit?

A.$SPLUNK_HOME/etc/system/local/server.conf, [diskUsage] stanza
B.$SPLUNK_HOME/etc/system/local/limits.conf, [indexer] stanza
C.$SPLUNK_HOME/etc/system/local/indexes.conf, [_internal] stanza
D.$SPLUNK_HOME/etc/system/local/indexes.conf, [default] stanza
AnswerC

The _internal index is defined in indexes.conf. To change its maximum size, the administrator should edit the [_internal] stanza in indexes.conf. Placing it in system/local ensures it overrides any default settings. The setting 'maxTotalDataSizeMB' controls the maximum size. This is the correct and targeted approach to modify the internal index's size limit without affecting other indexes.

Why this answer

The size of an index, including the internal index, is controlled by the 'maxTotalDataSizeMB' setting in the index's stanza within indexes.conf. The _internal index is defined in indexes.conf, and to override its default size, the administrator should create or edit the [_internal] stanza in $SPLUNK_HOME/etc/system/local/indexes.conf. This ensures the change takes effect with the highest precedence.

Exam trap

The trap here is confusing index size configuration with disk usage limits, which are set in server.conf, or with general limits in limits.conf.

16
MCQmedium

A Splunk administrator needs to ensure that events from a custom sourcetype named 'myapp:log' are timestamped using the format '%Y-%m-%d %H:%M:%S.%3N' and that the timezone is set to UTC. The sourcetype is defined in an app named 'myapp' located at $SPLUNK_HOME/etc/apps/myapp. The administrator wants this configuration to apply only to this app and not affect other apps. Which configuration file and stanza should be edited?

A.$SPLUNK_HOME/etc/system/local/props.conf, stanza [myapp:log]
B.$SPLUNK_HOME/etc/apps/myapp/local/inputs.conf, stanza [myapp:log]
C.$SPLUNK_HOME/etc/apps/myapp/default/transforms.conf, stanza [myapp:log]
D.$SPLUNK_HOME/etc/apps/myapp/local/props.conf, stanza [myapp:log]
AnswerD

Editing props.conf in the app's local directory with the specific sourcetype stanza ensures the timestamp format and timezone settings apply only to this app. The local directory takes precedence over default, and configurations in an app's local context are scoped to that app, preventing impact on other apps.

Why this answer

Timestamp recognition and timezone settings are configured in props.conf under a sourcetype stanza. To limit the configuration to a specific app, the file must reside in that app's local directory. The local directory overrides default and is scoped to the app, ensuring other apps are unaffected.

The correct file and stanza are props.conf with the sourcetype stanza in the app's local folder.

Exam trap

The trap here is assuming that system/local is the default place for app-specific settings, when in fact app-specific settings belong in the app's own directory to avoid global impact.

17
Multi-Selectmedium

Which TWO of the following are true about 'local' versus 'default' directories?

Select 2 answers
A.'local' files are preserved during Splunk upgrades
B.Files in 'default' should be edited to update Splunk settings
C.'local' directories only exist in the system folder
D.The 'local' directory has higher precedence than 'default'
E.'default' files take precedence over 'local'
AnswersA, D

Local directories sit outside the app's default tree, so Splunk's upgrade process leaves them untouched while it replaces default files. This satisfies the stem's preservation constraint: custom configurations survive version upgrades without manual backup, unlike default directory content, which is overwritten by the installer.

Why this answer

Option A is correct because files placed in a 'local' directory are user- or admin-created customizations that are preserved during a Splunk upgrade, whereas 'default' files are overwritten by the upgrade process. Option D is correct because Splunk's configuration precedence hierarchy gives 'local' higher precedence than 'default', so settings in 'local' override conflicting settings in 'default'. Option B is incorrect because 'default' files ship with Splunk and should not be edited; custom changes belong in 'local' (or an app's local directory) to survive upgrades.

Option C is incorrect because 'local' directories can exist in app directories (e.g., $SPLUNK_HOME/etc/apps/<app>/local) as well as in the system folder. Option E is incorrect because it reverses the actual precedence: 'local' takes precedence over 'default', not the other way around.

Exam trap

SPLK-1003 often tests the local-vs-default precedence and upgrade behavior, tricking candidates who assume default is the editable location or that local only exists at the system scope.

18
MCQhard

A Splunk admin needs to ensure that a custom sourcetype is recognized by all indexers in a distributed environment. The sourcetype definition exists in $SPLUNK_HOME/etc/system/local/props.conf on the search head. Indexers are not recognizing the sourcetype. What is the most likely cause?

A.The props.conf on the search head is not automatically distributed to indexers.
B.The props.conf stanza is missing the 'SHOULD_LINEMERGE' attribute.
C.The search head must be restarted before indexers can see the sourcetype.
D.The indexers require a transforms.conf entry to recognize any custom sourcetype.
AnswerA

In a distributed deployment, configuration files on the search head do not automatically propagate to indexers. The indexers need their own copy of props.conf, typically deployed via a deployment server or manually placed in the appropriate app. Since the sourcetype definition lives only on the search head, indexers cannot recognize it, which directly explains the observed failure in this scenario.

Why this answer

Splunk configuration files are not automatically synchronized between search heads and indexers. A sourcetype defined only on the search head remains unknown to indexers unless the same props.conf is deployed to them. The correct resolution is to distribute the configuration through a deployment server, a search head cluster app bundle, or manual placement, ensuring indexers have the definition locally.

Exam trap

The trap here is assuming configuration files propagate automatically across distributed Splunk components, when each component must receive them through deployment mechanisms.

19
Multi-Selecthard

Which THREE of the following represent true statements about the 'transforms.conf' file?

Select 3 answers
A.It is used to perform data masking or anonymization
B.It is used to route data to different indexes
C.It is referenced by props.conf to perform extractions
D.It is the primary file for setting up TCP inputs
E.It is used to define the sourcetype of data
AnswersA, B, C

The transforms.conf file defines field transformations, including regex-based sed and mask operations that redact or anonymise sensitive values during indexing. This directly satisfies the scenario's requirement for data masking, since masking is configured as a transform stanza referenced by props.conf, not handled elsewhere in the configuration set.

Why this answer

Option A is correct because transforms.conf defines transform stanzas that can apply regex-based field manipulation, including masking or anonymizing sensitive data via settings like REGEX and FORMAT or DEST_KEY. Option B is correct because transforms.conf supports routing events to different indexes using a transform with DEST_KEY = _MetaData:Index and a FORMAT that sets the target index, typically invoked from props.conf. Option C is correct because props.conf references transforms.conf stanzas through attributes such as TRANSFORMS-<class> and REPORT-<class> to perform field extractions and other transformations at search time or index time.

Option D is not correct because TCP inputs are configured in inputs.conf with stanzas like [tcp://<port>], not transforms.conf. Option E is not correct because sourcetype assignment is defined in inputs.conf (e.g., sourcetype=) or via props.conf, not in transforms.conf.

Exam trap

SPLK-1003 often tests the division of labor between props.conf and transforms.conf — candidates confuse which file defines sourcetypes, inputs, or routing, when in fact props.conf declares the sourcetype and transforms.conf performs the actual field manipulation and index routing.

20
Multi-Selecteasy

Which TWO of the following locations are valid for placing a custom 'inputs.conf' file?

Select 2 answers
A.$SPLUNK_HOME/etc/system/default/
B.$SPLUNK_HOME/etc/apps/my_app/local/
C.$SPLUNK_HOME/var/lib/
D.$SPLUNK_HOME/etc/system/local/
E.$SPLUNK_HOME/etc/apps/my_app/default/
AnswersB, D

Placing `inputs.conf` in `$SPLUNK_HOME/etc/apps/my_app/local/` is valid because app-level local directories hold user-defined configuration that overrides defaults without being overwritten during upgrades. This satisfies the stem's requirement for a legitimate custom location, since Splunk merges configuration by precedence, and the app's local folder ranks above its default folder.

Why this answer

Option B ($SPLUNK_HOME/etc/apps/my_app/local/) is correct because the local directory inside an app's configuration folder is a valid, supported location for custom configuration files such as inputs.conf, and it takes precedence over the app's default directory. Option D ($SPLUNK_HOME/etc/system/local/) is correct because the system/local directory is the standard location for custom, system-wide configuration overrides, including inputs.conf, and it is honored by Splunk at the system level. Option A ($SPLUNK_HOME/etc/system/default/) is not valid for custom files, as the default directory holds Splunk's built-in, shipped configurations and should not be modified by administrators.

Option C ($SPLUNK_HOME/var/lib/) is incorrect because that path is used for Splunk's runtime and index data, not for configuration files. Option E ($SPLUNK_HOME/etc/apps/my_app/default/) is not appropriate for custom inputs.conf because the default directory is reserved for an app's shipped default settings, and user customizations belong in the app's local directory instead.

Exam trap

The trap is assuming any directory under etc/ is valid for custom configs; candidates forget that default folders are vendor-managed and only local folders (or app local folders) are meant for custom overrides.

21
MCQmedium

You have defined a setting in $SPLUNK_HOME/etc/system/local/inputs.conf and the same setting exists in $SPLUNK_HOME/etc/apps/my_app/local/inputs.conf. Which value takes precedence?

A.The system/local value
B.The configuration with the most recent timestamp
C.The app/local value
D.The configuration alphabetically first
AnswerC

Splunk merges configuration by precedence, and app/local sits above system/local in the layer order. Because the app context is more specific than the system context, its inputs.conf stanza overrides the identical setting defined under system/local, so the app value wins.

Why this answer

Splunk's configuration file precedence is determined by the directory location, not timestamps or alphabetical order. The order from lowest to highest precedence is: system/default, app/default, system/local, app/local. Since app/local has higher precedence than system/local, the setting in $SPLUNK_HOME/etc/apps/my_app/local/inputs.conf overrides the one in $SPLUNK_HOME/etc/system/local/inputs.conf.

Exam trap

SPLK-1003 often tests the misconception that the most recently modified file or the system-level configuration takes precedence, when in fact Splunk's precedence is strictly based on directory location, with app/local overriding system/local.

How to eliminate wrong answers

Option A is wrong because system/local has lower precedence than app/local in Splunk's configuration hierarchy. Option B is wrong because Splunk does not use file timestamps to resolve configuration conflicts; precedence is strictly based on directory location. Option D is wrong because alphabetical order of configuration files or stanzas is not a factor in precedence; only the directory path determines which value wins.

22
MCQmedium

An admin needs to change the default retention period for an index without affecting other indexes. The change should persist across restarts. Which configuration file should be edited?

A.$SPLUNK_HOME/etc/system/local/indexes.conf
B.$SPLUNK_HOME/etc/system/local/inputs.conf
C.$SPLUNK_HOME/etc/system/local/transforms.conf
D.$SPLUNK_HOME/etc/system/local/props.conf
AnswerA

Index-specific settings such as retention are defined in indexes.conf. Editing the system/local copy ensures the change applies globally and persists across restarts. Because the stanza targets a single index, other indexes remain unaffected. This is the correct location for making a durable retention change for one index in Splunk Enterprise.

Why this answer

Index behavior, including retention, is configured in indexes.conf. To change retention for a single index while keeping the change persistent, the admin edits the index's stanza in system/local/indexes.conf and sets the appropriate retention attribute. Other indexes are untouched because the stanza is index-specific.

This is the standard and supported method in Splunk Enterprise.

Exam trap

The trap here is assuming retention is controlled by parsing or input files, when retention is an index-level property defined only in indexes.conf.

23
MCQeasy

Which file is responsible for defining how data is rotated in an index?

A.inputs.conf
B.props.conf
C.server.conf
D.indexes.conf
AnswerD

Rotation policy for an index — bucket ageing, maxDataSize, frozenTimePeriodInSecs and retention — is declared in indexes.conf. Splunk reads this file at startup and on reload, so it governs how hot, warm, cold and frozen buckets transition for that specific index.

Why this answer

indexes.conf is the configuration file that defines index properties, including data rotation behavior via settings like maxDataSize (which controls bucket size before rolling to a new bucket), frozenTimePeriodInSecs (retention), and maxTotalDataSizeMB (total index size). These settings determine how and when data is rotated, archived, or deleted. This makes indexes.conf the authoritative file for index lifecycle management.

Exam trap

SPLK-1003 often tests the confusion between indexes.conf (index storage and rotation) and inputs.conf (data ingestion), since both are commonly edited during initial setup.

How to eliminate wrong answers

Option A is wrong because inputs.conf defines data inputs (monitor, tcp, udp) and their ingestion settings, not index rotation. Option B is wrong because props.conf governs parsing, line breaking, and field extraction at index time, not data rotation. Option C is wrong because server.conf configures server-level settings (ports, clustering, licensing, KV Store), not index rotation policies.

24
Multi-Selecthard

A Splunk admin is troubleshooting why a search returns no results for a specific index. The admin suspects a configuration precedence issue involving index definitions in multiple apps. Which TWO actions would help identify which configuration file is actually being used for the index definition? (Choose two.)

Select 2 answers
A.Check the Splunk web interface under Settings > Indexes to see the active index configuration.
B.Delete all but one index definition file and re-run the search to see if results appear.
C.Run 'splunk btool indexes list --debug' to see all merged index configurations and their source files.
D.Run 'splunk btool indexes list --debug --app=<app_name>' to inspect a specific app's contribution to the index configuration.
E.Restart Splunk and watch the splunkd.log for index-related warnings.
AnswersC, D

The btool command with 'indexes list --debug' displays the effective merged configuration for indexes and annotates each setting with the file path it came from. This directly reveals which file is winning the precedence battle for the index definition, making it an appropriate diagnostic step in this scenario.

Why this answer

btool is the primary tool for inspecting effective configuration and tracing settings back to their source files. Running it against the indexes configuration with debug output shows the merged result and the file path for each setting. Scoping with the app flag isolates a single app's contribution.

Together, these commands let the admin pinpoint which file is winning precedence for the index definition.

Exam trap

The trap here is relying on the web UI or log files to reveal configuration source files, when only btool exposes the merged result with per-setting file attribution.

25
MCQmedium

What is the purpose of the 'disabled=1' attribute in an inputs.conf stanza?

A.It errors out if the input is not found
B.It prevents the input from running
C.It deletes the input
D.It hides the input from the UI
AnswerB

Setting disabled=1 in an inputs.conf stanza stops Splunk from starting or continuing that input, so no data is collected from it. The stanza remains in the configuration for later re-enabling, but the input itself does not run.

Why this answer

The 'disabled=1' attribute in an inputs.conf stanza tells splunkd to skip loading and running that input. The stanza remains in the configuration file (so it can be re-enabled later by setting disabled=0 or removing the attribute), but the input does not execute — no data is collected or forwarded from that source.

Exam trap

SPLK-1003 often tests whether candidates understand that disabled=1 suppresses execution but preserves configuration, tricking those who assume it deletes the input or hides it from the UI.

How to eliminate wrong answers

Option A is wrong because disabled=1 does not cause an error; Splunk silently ignores the stanza, and no 'input not found' error is generated. Option C is wrong because disabled=1 does not delete the input — the stanza persists in inputs.conf and can be re-enabled at any time. Option D is wrong because disabled=1 affects execution, not UI visibility; the input may still appear in Splunk Web's data inputs list, just marked as disabled.

26
MCQhard

An administrator is deploying a new index called metrics_archive on an indexer cluster. The administrator creates the index stanza in indexes.conf and places the file in etc/system/local on the cluster manager. After the bundle is pushed, searches against metrics_archive on the peer nodes fail with an error that the index does not exist. Which is the most likely cause?

A.The index stanza is missing the required homePath attribute, so the bundle was rejected during validation.
B.indexes.conf must be placed in etc/apps on the cluster manager for the bundle to include it.
C.The index name metrics_archive exceeds the maximum length allowed for clustered indexes.
D.Indexes defined on a cluster manager are not distributed to peers; each peer must define the index locally.
AnswerA

indexes.conf requires homePath for every index definition. If the stanza omits homePath, bundle validation fails or the index is not created, so peer nodes never receive a usable definition and searches report that the index does not exist. Adding homePath and coldPath resolves the problem.

Why this answer

Every index stanza in indexes.conf must specify homePath, and typically coldPath and thawedPath as well. When homePath is absent, the configuration bundle fails validation or the index is not created on the peers, leading to errors that the index does not exist. Verifying that the stanza includes the required path attributes and then re-pushing the bundle restores the index across the cluster.

Exam trap

The trap here is assuming a missing or misplaced file location is the issue, when the real failure is a required attribute omitted from the index stanza.

27
MCQhard

How does Splunk handle configuration files that are missing a required attribute?

A.The engine ignores the attribute and uses defaults
B.The Splunk service fails to start
C.The file is marked as corrupted
D.The entire file is ignored
AnswerA

Splunk's configuration file validator applies built-in defaults when a required attribute is absent, allowing the instance to start rather than failing. This satisfies the stem's scenario: missing attributes do not halt parsing, because the engine substitutes documented default values during configuration merge and validation.

Why this answer

When a Splunk configuration file is missing a required attribute, the engine does not fail or discard the file — it falls back to the default value defined in the underlying spec file (e.g., $SPLUNK_HOME/etc/system/README/*.conf.spec). This allows Splunk to remain resilient to incomplete configurations. The attribute is effectively ignored and the default is applied.

Exam trap

SPLK-1003 often tests the misconception that missing attributes cause failures or file rejection — candidates assume strict validation, but Splunk's design is permissive and defaults-driven.

How to eliminate wrong answers

Option B is wrong because Splunk is designed to be fault-tolerant with configuration — a missing attribute does not cause the service to fail to start; only severe syntax errors or invalid stanza structures might. Option C is wrong because Splunk does not mark files as 'corrupted' — there is no such status in the configuration system; it simply applies defaults. Option D is wrong because the entire file is not ignored — only the missing attribute falls back to default; the rest of the file's valid settings are still applied.

28
MCQmedium

When using transforms.conf to extract fields, what is the 'SOURCE_KEY' setting used for?

A.To specify which field the regex is applied to
B.To specify the index
C.To define the sourcetype
D.To set the time format
AnswerA

SOURCE_KEY names the existing field whose value the regex in REGEX is applied to, so extraction targets that field rather than the raw event. This satisfies the stem's requirement: transforms.conf needs to know which field to parse before the regex runs, enabling field-specific extraction from already-parsed data.

Why this answer

SOURCE_KEY allows you to specify a different field (or the whole raw event) to apply the regex to, instead of the default '_raw'.

29
MCQhard

What happens if you have a syntax error in a .conf file?

A.The system halts immediately
B.The configuration will be ignored and a warning logged
C.It is ignored silently
D.Splunk will automatically fix the syntax
AnswerB

Splunk validates each .conf stanza at load time; a syntax error invalidates only that stanza, so the malformed configuration is skipped rather than applied, and splunkd writes a warning to splunkd.log identifying the offending file and line.

Why this answer

When Splunk encounters a syntax error in a .conf file, it does not halt the entire system. Instead, it ignores the malformed configuration stanza and logs a warning to splunkd.log, allowing other valid configurations to continue functioning. This graceful degradation prevents a single typo from taking down the whole instance.

Exam trap

SPLK-1003 often tests the misconception that Splunk either halts or silently ignores config errors, when the correct behavior is to ignore the invalid stanza and log a warning — candidates must remember the 'warning logged' detail.

How to eliminate wrong answers

Option A is wrong because Splunk is designed for fault tolerance; a syntax error in one .conf file does not cause a system-wide halt. Option C is wrong because the error is not silent — Splunk explicitly logs a warning so administrators can detect and fix it. Option D is wrong because Splunk does not auto-correct syntax; it simply skips the invalid configuration and requires manual correction.

30
MCQhard

When using btool, what does the output show by default?

A.Only the differences from defaults
B.The raw file contents
C.Only the changes made in /local
D.The merged configuration of all files
AnswerD

Btool merges every configuration layer by default, combining system defaults, app-level settings and user-defined stanzas into one effective view. This satisfies the stem's requirement to see the resultant configuration, not individual file contents. Use `--debug` to reveal which file supplied each setting.

Why this answer

By default, btool displays all configuration stanzas and settings merged from all files in the precedence order.

31
MCQmedium

In props.conf, what does the 'REPORT-' prefix signify?

A.It triggers an alert
B.It defines an index-time extraction
C.It defines a search-time extraction
D.It defines a line-breaking rule
AnswerC

The REPORT- prefix in props.conf references a regex transform defined in transforms.conf, applied at search time to extract fields from raw events. It creates search-time field extractions rather than index-time ones, so no reindexing is required.

Why this answer

In props.conf, the `REPORT-` prefix defines a search-time field extraction that references a transform stanza (typically in transforms.conf) using a regex. It is applied when a search runs against the data, not when the data is indexed. This is why REPORT- extractions can be added or modified without re-indexing existing events.

Exam trap

The trap here is confusing REPORT- (search-time) with TRANSFORMS- (index-time) — candidates who haven't memorized the prefix-to-timing mapping often pick the index-time answer because both involve transforms.conf.

How to eliminate wrong answers

Option A is wrong because alerting is configured through saved searches and alert actions (or alert_actions.conf), not through props.conf prefixes. Option B is wrong because index-time extractions use the `TRANSFORMS-` prefix in props.conf, which references transforms that run during parsing/indexing and permanently write fields into the index. Option D is wrong because line-breaking behavior is controlled by `LINE_BREAKER`, `SHOULD_LINEMERGE`, and related props.conf settings — not by any REPORT- stanza.

32
MCQhard

An administrator is troubleshooting why a custom field extraction defined in props.conf is not being applied to events. The extraction uses a REPORT-class stanza that references a transform in transforms.conf. After running btool props list --debug, the administrator sees the REPORT setting is active. What is the next most likely configuration issue to investigate?

A.The indexer requires a full restart rather than a configuration reload to apply REPORT settings.
B.The props.conf file must be placed in $SPLUNK_HOME/etc/system/default for REPORT settings to function.
C.The transforms.conf stanza name referenced by REPORT does not match the actual stanza name in transforms.conf.
D.The sourcetype in props.conf must be prefixed with 'sourcetype:' for REPORT to be recognized.
AnswerC

The REPORT-class setting in props.conf references a stanza name in transforms.conf. If the names do not match exactly, the extraction silently fails because Splunk cannot locate the referenced transform. Verifying stanza name correspondence is the logical next step after confirming the REPORT setting is active.

Why this answer

After confirming that the REPORT setting is present and active in the merged props.conf, the next likely failure point is the transforms.conf stanza it references. If the stanza name in transforms.conf does not exactly match the name used in the REPORT setting, the field extraction will not run. Verifying that correspondence is the correct next diagnostic step.

Exam trap

The trap here is assuming the problem lies in props.conf when btool already confirmed the REPORT setting is active, overlooking the linked transforms.conf stanza name.

33
Multi-Selecthard

Which THREE configuration files are most critical for defining how data is ingested and parsed?

Select 3 answers
A.transforms.conf
B.server.conf
C.props.conf
D.indexes.conf
E.inputs.conf
AnswersA, C, E

transforms.conf defines field transformations, lookups and routing rules applied during ingestion, controlling how raw data is manipulated and parsed. It works alongside props.conf and inputs.conf as one of the three critical files shaping ingestion and parsing behaviour in the Splunk pipeline.

Why this answer

inputs.conf is correct because it defines the data inputs (monitor, TCP/UDP, scripted, etc.) that determine what data gets ingested into the indexer, including stanzas like [monitor:///var/log] with settings such as disabled, sourcetype, and index. props.conf is correct because it controls how the indexer parses and processes incoming events, setting sourcetype, line-breaking (LINE_BREAKER, SHOULD_LINEMERGE), timestamp recognition (TIME_PREFIX, TIME_FORMAT), and field extractions at index time. transforms.conf is correct because it defines the regex-based transformations and field extractions (REGEX, FORMAT, DEST_KEY) referenced by props.conf and inputs.conf, enabling routing, masking, and parsing of ingested data. server.conf is not among the three because it governs server-level settings like clustering, licensing, and general Splunk instance behavior rather than ingestion or parsing. indexes.conf is not among the three because it defines index storage properties such as path, maxDataSize, and retention, not how data is ingested or parsed.

Exam trap

SPLK-1003 often tests whether candidates can distinguish ingestion/parsing files (inputs, props, transforms) from system/storage files (server, indexes) — the trap is selecting server.conf or indexes.conf as 'critical for ingestion' because they sound important.

34
MCQmedium

You need to perform a regex-based routing operation to send data to different indexes based on the host. Which file must be configured to define the routing regex?

A.transforms.conf
B.indexes.conf
C.props.conf
D.inputs.conf
AnswerA

Routing regexes are defined in transforms.conf, where a stanza with REGEX and DEST_KEY (typically _MetaData:Index) performs the index assignment. props.conf merely references that transform via TRANSFORMS-<class>, so it cannot hold the regex itself. This satisfies the stem's requirement to define the routing regex.

Why this answer

In Splunk, regex-based routing to different indexes is achieved by defining a transform with a REGEX and a DEST_KEY that points to the index metadata field (_MetaData:Index). This transform is defined in transforms.conf. The transform is then referenced from props.conf using a rule class (e.g., TRANSFORMS-<class> = <transform_name>).

Therefore, transforms.conf is the file that must be configured to define the routing regex.

Exam trap

SPLK-1003 often tests the confusion between props.conf and transforms.conf: candidates may think the regex is defined in props.conf because that's where the transform is referenced, but the actual regex and routing logic reside in transforms.conf.

How to eliminate wrong answers

Option B is wrong because indexes.conf is used to define index properties such as home path, cold path, thawed path, and retention policies, not for routing logic. Option C is wrong because props.conf is used to associate transforms with source types or hosts, but it does not contain the regex itself; it only references transforms defined in transforms.conf. Option D is wrong because inputs.conf is used to configure data inputs (e.g., monitor, TCP/UDP) and does not handle regex-based routing.

Ready to test yourself?

Try a timed practice session using only Configuration Files questions.