Courseiva

CCNA Field Management And Calculated Fields Questions

48 questions · Field Management And Calculated Fields topic · All types, answers revealed

1
MCQhard

When creating a calculated field, what does the 'EVAL-' prefix in props.conf indicate?

A.It identifies a field for a lookup table.
B.It marks the field as a source for an alias.
C.It forces the field to be indexed.
D.It indicates a calculated field definition.
AnswerD

The EVAL- prefix in props.conf defines a calculated field, where the remainder of the attribute name becomes the new field and its value is the evaluated expression. This satisfies the stem's requirement for identifying calculated field definitions rather than field aliases or extractions.

Why this answer

In Splunk's props.conf, the 'EVAL-' prefix defines a calculated field — a field whose value is computed at search time using an expression. For example, EVAL-total = price * quantity creates a field named 'total' derived from other fields. This is the standard syntax for search-time field extraction via calculated fields, and it does not require the field to be indexed.

Exam trap

SPLK-1004 often tests the confusion between props.conf prefixes — candidates must know that EVAL- means calculated field, FIELDALIAS- means alias, and LOOKUP- means lookup enrichment.

How to eliminate wrong answers

Option A is wrong because lookup table fields are defined via lookup definitions and the LOOKUP- prefix in props.conf, not EVAL-. Option B is wrong because field aliases use the FIELDALIAS- prefix, which maps one field name to another, not EVAL-. Option C is wrong because EVAL- fields are calculated at search time and are explicitly not indexed — forcing indexing would require a different mechanism entirely (and is generally not how calculated fields work).

2
MCQeasy

Which of the following is a requirement for using a CSV lookup?

A.A lookup definition must exist for the CSV file.
B.The CSV must be indexed into the _internal index.
C.The CSV must be placed in the /etc/indexes directory.
D.The CSV needs to be converted to JSON.
AnswerA

A CSV lookup requires a lookup definition that maps the file to a lookup table name and specifies fields, since the search command references the definition rather than the raw file. This satisfies the requirement that the CSV be registered before it can be used.

Why this answer

In Splunk, a CSV lookup requires a lookup definition (also called a lookup table definition) to be created, which maps the CSV file to a named lookup that can be invoked in search commands like lookup or inputlookup. The definition specifies the file path, the lookup type (CSV), and optionally advanced settings like case sensitivity or matching fields. Without a lookup definition, Splunk cannot resolve the CSV file as a lookup table, even if the file exists in the appropriate directory.

Thus, option A is the correct requirement.

Exam trap

SPLK-1004 often tests the misconception that CSV lookups require indexing or special file placement, confusing them with indexed data or configuration files, when actually only a lookup definition is needed.

How to eliminate wrong answers

Option B is wrong because CSV files are not indexed into the _internal index; _internal is reserved for Splunk's internal logs and metrics, and lookups are external files referenced at search time, not indexed data. Option C is wrong because the /etc/indexes directory is used for index configuration files (indexes.conf), not for storing lookup CSV files; lookups typically reside in $SPLUNK_HOME/etc/apps/<app>/lookups/ or a custom path. Option D is wrong because CSV files do not need to be converted to JSON; Splunk natively supports CSV lookups without any format conversion.

3
MCQeasy

A Splunk user wants to create a calculated field that extracts the domain from an email address field named 'email'. The user writes the following eval expression: 'mvindex(split(email, "@"), 1)'. After saving the calculated field, the user notices that the new field 'domain' is not appearing in the Fields sidebar for some events. What is the most likely cause?

A.The mvindex() function is not supported in calculated fields and only works in the search pipeline.
B.The calculated field must be defined in transforms.conf instead of props.conf to work with multivalue fields.
C.The eval expression is incorrect because split() returns a multivalue field and mvindex() requires a numeric index.
D.The field 'email' is not present in all events, so the calculated field cannot be computed for those events.
AnswerD

Calculated fields are only created when the source fields referenced in the expression are present. If 'email' is missing from an event, the expression cannot be evaluated, and the 'domain' field will not be created for that event. This explains why the field does not appear in the sidebar for some events. The sidebar only shows fields that exist in the current result set.

Why this answer

Calculated fields are only computed when all referenced fields are present in an event. If 'email' is missing, the 'domain' field will not be created, and it will not appear in the Fields sidebar for those events. This is expected behavior and not an error in the expression or configuration.

Exam trap

The trap here is assuming that calculated fields are always present once defined, overlooking that they depend on the existence of source fields in each event.

4
Multi-Selectmedium

Which TWO of the following are steps required to configure a CSV lookup?

Select 2 answers
A.Upload the CSV file.
B.Modify the raw data to include the CSV headers.
C.Create a lookup definition.
D.Restart the Splunk indexer.
E.Add the CSV to the license manager.
AnswersA, C

A CSV lookup requires the source data to exist in Splunk before any definition can reference it, so uploading the CSV file into the lookup table files list is a mandatory step. Without this upload, the lookup definition has no file to point at.

Why this answer

Option A is correct because configuring a CSV lookup begins by uploading the CSV file to Splunk, typically via Settings > Lookups > Lookup table files, so the lookup table data is available to the search head. Option C is correct because after the file is uploaded you must create a lookup definition (Settings > Lookups > Lookup definitions) that maps the lookup name to the CSV file and defines fields, which is what allows the lookup to be invoked in SPL. Option B is not required because CSV headers are part of the uploaded file itself and are not modified as a separate configuration step.

Option D is not required because lookup configuration does not need an indexer restart; lookups are resolved on the search head. Option E is not required because the license manager governs indexing volume, not lookup table configuration.

Exam trap

SPLK-1004 often tests the misconception that a lookup requires indexer-side changes (like restarting the indexer or modifying raw data), when in fact lookups are purely search-time knowledge objects configured on the search head.

5
MCQmedium

What is the purpose of the 'tags.conf' file?

A.It defines the search string for an event type.
B.It manages lookup table file paths.
C.It stores user-defined tags.
D.It configures the web interface dashboard colors.
AnswerC

The tags.conf file persists tag definitions, mapping tag names to field-value pairs so they survive restarts and are searchable via tag= or eventtype matching. It holds the user-defined tags created through Settings or the CLI, satisfying the stem's requirement for where custom tags are stored.

Why this answer

tags.conf stores user-defined tags that are applied to field-value pairs, enabling analysts to search by meaningful labels (e.g., tag=production) instead of memorizing specific field values. Tags are defined in tags.conf under [<fieldname>=<value>] stanzas with tagName = enabled. This makes tags a knowledge object for search-time enrichment, not a parsing or lookup mechanism.

Exam trap

SPLK-1004 often tests the confusion between tags.conf (user-defined tags) and eventtypes.conf (event type search strings), since both are search-time knowledge objects that categorize events.

How to eliminate wrong answers

Option A is wrong because the search string for an event type is defined in savedsearches.conf (or eventtypes.conf), not tags.conf. Option B is wrong because lookup table file paths are managed in transforms.conf (with lookup definitions) and referenced from props.conf, not tags.conf. Option D is wrong because dashboard colors are configured in the dashboard XML/JSON or via the UI theme, not in tags.conf.

6
MCQhard

Which configuration file would you modify to assign a tag to a field-value pair manually?

A.props.conf
B.tags.conf
C.eventtypes.conf
D.transforms.conf
AnswerB

Tags are assigned to field-value pairs through tags.conf, which maps a tag name to a specific field and value within a stanza. Editing this file directly applies the tag manually, which is precisely what the scenario asks for.

Why this answer

The tags.conf file is the Splunk configuration file that defines tag definitions, mapping a tag name to specific field-value pairs (for example, tagging host=web01 with the tag 'production'). Manual assignment of a tag to a field-value pair is done by editing tags.conf, typically via Settings > Tags in Splunk Web or by directly editing the file in an app's local directory.

Exam trap

SPLK-1004 often tests the confusion between tags.conf and eventtypes.conf, since both create searchable groupings — candidates who think event types store tag definitions or that props.conf handles tagging pick the wrong file.

How to eliminate wrong answers

Option A is wrong because props.conf controls source type, host, and source settings along with parsing rules (LINE_BREAKER, TIME_PREFIX, etc.), not tag definitions. Option C is wrong because eventtypes.conf defines event types as saved searches that categorize events, which is a separate mechanism from tagging field values. Option D is wrong because transforms.conf defines field extractions, lookups, and routing rules used at index time or search time, not tag assignments.

7
MCQeasy

A junior analyst needs to search for events where a field named 'status_code' equals 404, but the field is only present under the name 'http_status' in the indexed data. The analyst wants to use 'status_code' in searches without changing the data or the extraction. Which of the following should be configured?

A.A tag named status_code applied to events where http_status exists.
B.A lookup definition that maps http_status values to status_code values using a CSV file.
C.A calculated field using EVAL-status_code that copies the value from http_status.
D.A field alias using FIELDALIAS-status_code that maps status_code to http_status.
AnswerD

Field aliases are designed to give an existing field an alternate name. Defining FIELDALIAS-status_code = http_status in props.conf lets users search status_code=404 and resolve to the underlying http_status values. No reindexing or extraction change is needed, and the alias applies at search time, which matches the analyst's requirement exactly.

Why this answer

Field aliases provide an alternate name for an existing field and are configured with FIELDALIAS-<alias> in props.conf. Mapping status_code to http_status makes the analyst's preferred name searchable without altering extraction or reindexing. This is the lightest-weight solution because it performs no computation and simply resolves the alias at search time to the original field's values.

Exam trap

The trap here is reaching for a calculated field or lookup when a simple rename, which is exactly what a field alias provides, is sufficient.

8
MCQhard

You want to create a lookup that updates automatically as new data arrives. Which feature should you use?

A.KV Store lookup.
B.Field alias.
C.Calculated field.
D.CSV file lookup.
AnswerA

KV Store lookups persist as JSON documents in the app's collections and can be updated programmatically via REST or SPL, so new arriving data can refresh them automatically, unlike static CSV lookups that require manual replacement.

Why this answer

A KV Store lookup stores lookup data in Splunk's MongoDB-based key-value store, which can be updated programmatically and dynamically via REST API or the outputlookup command, allowing the lookup to reflect new data as it arrives. This makes it the correct choice for a lookup that updates automatically.

Exam trap

The trap is confusing lookups with other field-manipulation features (field aliases, calculated fields) or assuming CSV lookups auto-update; candidates must know that only KV Store lookups support dynamic, programmatic updates.

How to eliminate wrong answers

Option B is wrong because a field alias merely creates an alternate name for an existing field at search time; it does not store or update lookup data. Option C is wrong because a calculated field computes a value at search time using an eval expression; it is not a lookup mechanism and does not hold updatable reference data. Option D is wrong because a CSV file lookup is a static file that must be manually re-uploaded or overwritten to change; it does not update automatically as new data arrives.

9
MCQhard

When configuring a field alias in props.conf, which of the following is true?

A.The alias appears in the 'interesting fields' list.
B.The alias name must be identical to the original field name.
C.The alias is applied before field extraction.
D.The alias must reference an external CSV.
AnswerA

A field alias created in props.conf with FIELDALIAS- produces a new search-time field name that Splunk lists among interesting fields, because it is extracted and selectable like any other. This satisfies the question's constraint about alias visibility in the interface.

Why this answer

When a field alias is configured in props.conf, the alias appears in the 'interesting fields' list in Splunk Web, allowing users to search by the alias name. The alias does not change the original field name; it provides an alternate name. Field aliases are applied at search time after field extraction, and they do not require an external CSV.

Exam trap

SPLK-1004 often tests the timing of field alias application (after extraction) and its visibility in the interesting fields list, causing candidates to confuse aliases with calculated fields or lookups.

How to eliminate wrong answers

Option B is wrong because the alias name must be different from the original field name; otherwise, it would be redundant. Option C is wrong because field aliases are applied after field extraction, not before; they operate on already extracted fields. Option D is wrong because field aliases are defined in props.conf and do not reference an external CSV; that is for lookups.

10
MCQmedium

What is the result of applying multiple aliases to the same field?

A.The original field name is deleted.
B.The search will fail due to a conflict.
C.Only the first alias takes effect.
D.The field will have multiple valid names in the search.
AnswerD

Aliases are additive, not exclusive: each alias directive maps an additional name onto the same underlying field, so searches resolve any of those names to the identical field data. The field therefore becomes queryable under multiple valid names rather than only its original one.

Why this answer

In Splunk, field aliases allow you to assign alternative names to a field without removing the original. When multiple aliases are applied to the same field, the field becomes accessible by all those names in searches. This means you can reference the field by its original name or any of its aliases, and they all point to the same underlying data.

This is useful for normalizing field names across different sourcetypes.

Exam trap

SPLK-1004 often tests the behavior of field aliases, and candidates may incorrectly assume that aliases replace the original field or that only one alias can be active, leading them to choose incorrect options.

How to eliminate wrong answers

Option A is wrong because applying aliases does not delete the original field name; the original field remains accessible. Option B is wrong because Splunk does not fail searches due to multiple aliases; it simply allows multiple names for the same field. Option C is wrong because all aliases take effect, not just the first one; Splunk supports multiple aliases for a single field.

11
Multi-Selecthard

Which THREE of the following are common issues that cause a lookup to fail?

Select 3 answers
A.Incorrect object permissions.
B.Case-sensitivity mismatch between search and lookup.
C.The lookup file is not uploaded.
D.The user is not an admin.
E.The index is full.
AnswersA, B, C

Lookups fail when the running user lacks permission to the lookup definition or its underlying object, so the search cannot read the file. This satisfies the stem's requirement by naming incorrect object permissions as a genuine cause of lookup failure.

Why this answer

Option A is correct because lookup operations run under the permissions of the user or role executing the search, so if that user lacks read access to the lookup definition or the underlying lookup file, the lookup fails with a permission error. Option B is correct because lookup matching is typically case-sensitive by default (for example, in Splunk's lookup matching), so a value like "User1" in the event will not match "user1" in the lookup table unless case sensitivity is explicitly handled. Option C is correct because if the lookup file (such as a CSV) was never uploaded or the lookup definition points to a nonexistent file, the lookup cannot resolve and returns no results or an error.

Option D is not a common cause because lookup execution does not require admin privileges; a non-admin user with the appropriate capabilities and object permissions can run lookups successfully. Option E is not a common cause because indexes store event data, not lookup tables, and an index being full does not prevent a lookup from resolving against its lookup file.

Exam trap

The trap is selecting plausible-sounding but incorrect causes like 'user is not an admin' or 'index is full'; candidates must focus on the actual lookup mechanics — permissions, case sensitivity, and file availability — rather than generic system issues.

12
MCQhard

What is the effect of the 'overwrite' setting in a lookup configuration?

A.It deletes the original raw data.
B.It forces the lookup to run at index time.
C.It forces the lookup to run only for admins.
D.It replaces the existing field value with the lookup result.
AnswerD

The overwrite setting controls whether lookup output replaces a field already present in the event. When enabled, the matched lookup value supersedes the original field value; when disabled, the original event field is retained. This satisfies the stem's requirement by defining overwrite as direct field-value substitution.

Why this answer

The overwrite setting in a lookup configuration determines whether the lookup result replaces the existing field value in the event. When overwrite is set to true (1), the value returned by the lookup overwrites the original field value; when false (0), the lookup result is written to a new field or only used if the original field is null. This is critical for controlling data enrichment behavior.

Exam trap

The trap here is confusing lookup overwrite with data deletion or index-time processing, when it actually only controls search-time field value replacement.

How to eliminate wrong answers

Option A is wrong because lookups never delete raw data; raw data is immutable in Splunk and lookups only add or modify fields at search time. Option B is wrong because lookups run at search time by default; the overwrite setting has nothing to do with index-time execution. Option C is wrong because the overwrite setting is not related to user role permissions; it is purely about field value replacement behavior.

13
MCQeasy

A Splunk administrator wants to rename the extracted field `src_ip` to `client_ip` at search time without modifying the original data or creating a new field. The administrator also wants the original field name `src_ip` to remain available in searches. Which of the following should the administrator configure?

A.A field alias in props.conf using the syntax `FIELDALIAS-client_ip = src_ip AS client_ip`.
B.A field extraction using the regex `(?<client_ip>...)` in transforms.conf.
C.A calculated field using the eval expression `client_ip = src_ip`.
D.A lookup definition that maps `src_ip` to `client_ip`.
AnswerA

A field alias creates an additional name for an existing field without removing the original. Configuring `FIELDALIAS-client_ip = src_ip AS client_ip` in props.conf makes `client_ip` available alongside `src_ip`, satisfying the requirement to keep the original field. This is the standard method for renaming fields at search time while preserving the original.

Why this answer

Field aliases are the correct tool to provide an alternate name for an existing field while keeping the original field intact. The FIELDALIAS setting in props.conf maps a source field to one or more aliases, making both names searchable. This avoids data duplication and maintains consistency across searches.

Exam trap

The trap here is confusing field aliases with calculated fields, which create new fields rather than renaming existing ones.

14
Multi-Selecthard

Which THREE of the following items are configured in props.conf?

Select 3 answers
A.Index retention policy.
B.Search head distribution.
C.Field alias.
D.Automatic lookups.
E.Field extraction.
AnswersC, D, E

Field aliases are defined in props.conf, mapping an existing field name to an alternate name at search time. This satisfies the stem because props.conf governs indexer or search-head field behaviour, unlike transforms.conf, which handles lookup definitions and field extraction regexes.

Why this answer

In Splunk, props.conf is the configuration file that controls how the indexer or search head parses, transforms, and enriches incoming data at search time and index time. Option C (Field alias) is correct because field aliases are defined in props.conf using the FIELDALIAS-<class> setting to map an existing field name to an alternate name. Option D (Automatic lookups) is correct because automatic lookups are configured in props.conf via LOOKUP-<class> stanzas, which apply lookup tables to events automatically at search time.

Option E (Field extraction) is correct because inline, transform, and regex-based field extractions are defined in props.conf through settings such as EXTRACT-<class>, REPORT-<class>, and TRANSFORMS-<class>. Option A (Index retention policy) is not configured in props.conf; retention is controlled in indexes.conf using settings like frozenTimePeriodInSecs and maxTotalDataSizeMB. Option B (Search head distribution) is not configured in props.conf; search head clustering and distribution are handled through server.conf and the search head clustering configuration, not props.conf.

Exam trap

SPLK-1004 often tests the confusion between props.conf and indexes.conf, leading candidates to incorrectly assign retention policies to props.conf.

15
MCQeasy

What is the primary benefit of creating an Event Type?

A.To increase indexing performance.
B.To automate the ingestion of new data.
C.To hide events from unauthorized users.
D.To easily identify and group specific sets of events.
AnswerD

Event types apply a saved search that tags matching events with a named type, letting users reference that group by name in searches and other objects. This directly satisfies the stem's requirement to identify and group specific sets of events without rewriting the underlying search each time.

Why this answer

An event type is a saved search-time definition that categorizes events based on a search string, letting users tag and group similar events under a friendly name (e.g., 'failed_login'). Its primary purpose is to make it easy to identify, classify, and later reference groups of related events in searches and dashboards via the eventtype field.

Exam trap

SPLK-1004 often tests whether candidates confuse search-time categorization (event types) with index-time or access-control functions — the trap is picking 'increase indexing performance' or 'hide events' when event types only group events at search time.

How to eliminate wrong answers

Option A is wrong because event types are applied at search time and have no effect on indexing performance — indexing is governed by indexer resources and pipeline settings. Option B is wrong because event types do not automate data ingestion; ingestion is controlled by inputs.conf, forwarders, and HEC, not by event type definitions. Option C is wrong because event types do not enforce access control — hiding events from users is done via role-based search filters, index permissions, and field-level restrictions, not event types.

16
MCQeasy

How can you view all existing field aliases in the Splunk Web interface?

A.Settings > Data inputs.
B.Settings > Fields > Field aliases.
C.Settings > Lookups.
D.Settings > Indexes.
AnswerB

Splunk Web consolidates field alias management under Settings > Fields > Field aliases, listing every alias with its source and destination fields. This satisfies the requirement to view all existing aliases in the interface, rather than editing them individually via configuration files.

Why this answer

In Splunk Web, field aliases are managed under Settings > Fields > Field aliases, where administrators can create, view, edit, and delete aliases that map existing field names to common names without modifying the underlying data. This location lists all aliases defined in the current app context, allowing you to review them. The other Settings menus handle unrelated configuration areas such as data ingestion, lookups, and index storage.

Exam trap

SPLK-1004 often tests whether candidates know the exact Settings menu path for field-level configurations, and a common mistake is confusing field aliases with lookups or data inputs.

How to eliminate wrong answers

Option A is wrong because Settings > Data inputs is where you configure data ingestion sources (forwarders, monitors, scripts), not field aliases. Option C is wrong because Settings > Lookups manages lookup table files and definitions used for field enrichment, not field name mappings. Option D is wrong because Settings > Indexes is where you create and configure indexes and their retention/size settings, not field aliases.

17
MCQeasy

You need to create a persistent field mapping that allows users to search for 'user_id' instead of 'uid' without modifying the underlying raw data. Which feature should you use?

A.Lookups
B.Field Extractions
C.Calculated Fields
D.Field Aliases
AnswerD

Field aliases let you map an alternative name, such as user_id, onto an existing field like uid at search time, without altering indexed raw data or reindexing. This satisfies the requirement for persistent searchable renaming while leaving the underlying events untouched.

Why this answer

Field aliases in Splunk allow you to create an alternate name for an existing field without modifying the raw data or the original field. By defining a field alias, users can search for 'user_id' and Splunk will automatically map it to the 'uid' field. This is the correct feature for providing a persistent, search-time mapping.

Exam trap

The trap is confusing field aliases with calculated fields or lookups — candidates may think they need to create a new field via eval or lookup, but the simplest solution is a field alias.

How to eliminate wrong answers

Option A is wrong because lookups are used to enrich events with external data, not to rename fields. Option B is wrong because field extractions are used to extract fields from raw data at search time, not to alias existing fields. Option C is wrong because calculated fields create new fields based on evaluations of existing fields, but they do not provide a simple alias; they require an eval expression and are typically used for computations.

18
MCQmedium

You want to create a calculated field that multiplies 'price' by 'tax_rate'. Why should you avoid using a field alias for this?

A.Calculated fields are faster.
B.Field aliases do not support mathematical operators.
C.Calculated fields are more secure.
D.Aliases are deprecated.
AnswerB

Field aliases only create an alternate name pointing at an existing field; they perform no computation. Multiplication of price by tax_rate requires an eval-based calculated field, so aliases cannot express the arithmetic the scenario demands.

Why this answer

Field aliases in Splunk simply map an existing field name to an alternate name — they do not transform or compute values. Because aliases only rename, they cannot evaluate expressions like price * tax_rate. A calculated field, by contrast, uses eval-style expressions to compute a new value at search time, which is exactly what's needed for arithmetic operations.

Exam trap

SPLK-1004 often tests the misconception that aliases can perform transformations — candidates must remember aliases only rename fields, while calculated fields compute values.

How to eliminate wrong answers

Option A is wrong because calculated fields are not inherently 'faster' than aliases — in fact, aliases are essentially free (just a name mapping), while calculated fields run an eval expression per event, so performance is not the reason to prefer calculated fields here. Option C is wrong because security is unrelated to this choice; both aliases and calculated fields are governed by the same role-based field-level permissions. Option D is wrong because field aliases are a fully supported, current Splunk feature — they are not deprecated.

19
MCQmedium

A knowledge manager needs an ad-hoc calculated field named `resp_seconds` available only within a single dashboard panel that computes `round(duration_ms/1000, 2)` from an existing numeric field. The value must not persist to the knowledge object store and must not appear in other searches. Which approach should be used?

A.Add an `eval resp_seconds=round(duration_ms/1000, 2)` command inline in the panel's search string.
B.Add a field alias named `resp_seconds` pointing to `duration_ms` in the sourcetype definition.
C.Define `EVAL-resp_seconds = round(duration_ms/1000, 2)` in props.conf for the sourcetype.
D.Create a calculated field in Settings > Fields with the eval expression and a `resp_seconds` name.
AnswerA

An inline eval command applies the calculation only to the results of that specific search and is never saved as a knowledge object, so the field exists solely inside this dashboard panel. Because eval computes at search time from the already-extracted duration_ms field, it satisfies the requirement that the value neither persists nor leaks into other searches.

Why this answer

An inline eval in the panel search computes the new value at search time and discards it when the search finishes, which is exactly the ad-hoc, panel-scoped behavior requested. Saved calculated fields, props.conf EVAL stanzas, and field aliases all persist as configuration and thus would leak the field into other searches.

Exam trap

The trap here is assuming that any calculated field must be created through Settings > Fields, when an inline eval command already produces an ad-hoc calculated field scoped to one search.

20
Multi-Selecthard

Which THREE of the following are standard configuration files for field management?

Select 3 answers
A.indexes.conf
B.transforms.conf
C.fields.conf
D.inputs.conf
E.props.conf
AnswersB, C, E

transforms.conf defines field transformations, including regex-based field extraction and lookups, so it is a standard configuration file for field management in Splunk. It satisfies the stem's requirement by providing the extraction and aliasing rules that populate and normalise fields at search time.

Why this answer

In Splunk, field management (field extraction and field transformations) is configured through transforms.conf, fields.conf, and props.conf. transforms.conf [B] defines field transformations and regex-based extractions (e.g., REGEX, FORMAT, SOURCE_KEY) that create or modify fields. fields.conf [C] controls how indexed and search-time fields are handled, particularly specifying whether a field is indexed (INDEXED=true/false) and how it is extracted at search time. props.conf [E] is where field extractions are associated with source types, hosts, or sources via TRANSFORMS and REPORT stanzas, tying the extraction logic to incoming data. The unmarked options do not belong: indexes.conf [A] configures index storage, retention, and paths, not field management, and inputs.conf [D] configures data inputs such as monitors, TCP/UDP ports, and scripted inputs, not field extraction or transformation.

Exam trap

SPLK-1004 often tests which .conf files belong to which function, and candidates confuse indexes.conf or inputs.conf with field management because they are commonly edited files.

21
Multi-Selectmedium

A knowledge manager is reviewing how calculated fields and field aliases interact within a search. Which TWO of the following statements are accurate? (Choose two.)

Select 2 answers
A.Calculated fields and field aliases both require the underlying data to be reindexed before they take effect.
B.A calculated field can be referenced by other calculated fields defined in the same props.conf stanza, provided the evaluation order is correct.
C.Calculated fields are evaluated at index time, so changing an EVAL expression requires reindexing the affected data.
D.A field alias can be used to give an existing extracted field a second name that users can search on directly.
E.Field aliases create a new field with values computed from an expression, similar to a calculated field.
AnswersB, D

Within a props.conf stanza, multiple EVAL- definitions can reference each other as long as the dependency is satisfied in evaluation order. Splunk evaluates calculated fields in a sequence that respects these dependencies, so a calculated field can build on the output of another. This enables layered derivations, such as computing a total before computing a ratio from that total.

Why this answer

Field aliases map an existing extracted field to an alternate name, letting users search on either name without reindexing. Calculated fields use EVAL expressions to create new fields at search time and can reference one another within the same props.conf stanza when the evaluation order is satisfied. Both are search-time mechanisms, so configuration changes apply immediately, but they do not compute values the way the other does.

Exam trap

The trap here is conflating field aliases and calculated fields, when in fact aliases only rename existing fields while calculated fields derive new values.

22
MCQeasy

A Splunk user wants to create a field alias so that the field `src_ip` can also be referred to as `client_ip` in searches. The user has added the following to `props.conf` in the `search` app: `FIELDALIAS-client_ip = src_ip AS client_ip`. After restarting Splunk, the user searches for `client_ip=192.168.1.1` but gets no results, even though `src_ip=192.168.1.1` returns events. What is the most likely reason for this?

A.The field alias does not apply to the `src_ip` field because it is extracted at search time and the alias must be defined at index time.
B.The field alias syntax is incorrect; it should be `FIELDALIAS-client_ip = src_ip client_ip`.
C.The field alias was defined in the wrong app; it should be in the `system` app to be globally available.
D.The user did not specify the sourcetype in the `props.conf` stanza, so the alias is not applied to any events.
AnswerD

Field aliases in `props.conf` must be defined within a stanza that matches the events, such as `[<sourcetype>]` or `[<host>]`. Without a stanza, the alias is not associated with any data and will not be applied. The user likely added the `FIELDALIAS-` line without a stanza header. This is the most common configuration error for field aliases.

Why this answer

Field aliases must be placed under a valid stanza in `props.conf`, such as a sourcetype, host, or source stanza. Without a stanza, the alias definition is ignored. The user's syntax for the alias itself is correct, but the missing stanza means it never gets applied.

Other options like app context or index-time requirements are not the primary issue.

Exam trap

The trap here is focusing on the alias syntax or app placement while overlooking the necessity of a stanza header in `props.conf`.

23
Multi-Selectmedium

A Splunk power user is configuring a calculated field that uses the eval function 'coalesce' to handle null values. The user wants to ensure the calculated field is evaluated correctly. Which TWO of the following statements about calculated fields in props.conf are true? (Choose two.)

Select 2 answers
A.Calculated fields can use the coalesce function to return the first non-null value from a list of fields.
B.Calculated fields are stored in the index and increase storage requirements.
C.Calculated fields are defined using the EVAL- prefix in props.conf.
D.Calculated fields can only reference fields that are extracted at index time.
E.Calculated fields are evaluated before field aliases are applied.
AnswersA, C

The coalesce function is a valid eval function that returns the first non-null value from its arguments. It can be used in calculated fields to handle null values. For example, EVAL-status = coalesce(status_code, 'unknown') would set 'status' to the value of 'status_code' if not null, otherwise 'unknown'.

Why this answer

Calculated fields are defined with the EVAL- prefix in props.conf and can use any eval function, including coalesce, to manipulate field values. They are evaluated at search time and can reference search-time fields. They are not stored in the index and do not increase storage.

The correct statements are that they use the EVAL- prefix and can use coalesce.

Exam trap

The trap here is assuming calculated fields are stored or limited to index-time fields, when they are actually search-time and can reference any field.

24
MCQhard

An administrator is configuring a calculated field in props.conf to derive a new field from two extracted fields. The stanza is applied to a sourcetype, but users report the calculated field does not appear in search results. The extracted fields are present and correct. Which of the following is the most likely cause?

A.The calculated field references an extracted field that is itself created by a search-time extraction, and calculated fields cannot depend on other calculated or extracted fields.
B.Calculated fields require the field to be listed in a FIELDALIAS stanza before they can be referenced in an EVAL expression.
C.The calculated field name conflicts with a field alias defined in the same app, and field aliases always take precedence over calculated fields.
D.The calculated field was defined with the EVAL- prefix but placed in a stanza that does not match the sourcetype of the events being searched.
AnswerD

Calculated fields are defined in props.conf using EVAL-<fieldname> and only apply when the stanza matches the event's host, source, or sourcetype. If the stanza targets a different sourcetype than the one producing the events, the calculation never runs and the field is absent. This is the most common configuration mistake and the most likely explanation given that the source fields are correct.

Why this answer

Calculated fields are configured in props.conf with EVAL-<fieldname> and are bound to the stanza where they are declared. If that stanza does not match the events' host, source, or sourcetype, the calculation is never evaluated and the field will not appear. Verifying that the stanza correctly targets the relevant sourcetype is the most likely fix when the underlying extracted fields are confirmed present and correct.

Exam trap

The trap here is assuming calculated fields always apply globally, when in fact they are scoped to the props.conf stanza and only fire for events that match it.

25
MCQhard

A Splunk administrator is troubleshooting a calculated field that is not appearing in search results. The calculated field is defined in `props.conf` as `EVAL-total = price * quantity`. The administrator confirms that the `price` and `quantity` fields are present in the events and that the `props.conf` file is correctly placed in the app's `local` directory. However, when searching for `total`, no results are returned. Which of the following is the most likely cause?

A.The calculated field is not referenced in the search, so it is not evaluated; the administrator must explicitly include it in the search terms.
B.The `price` or `quantity` field is extracted as a string, causing the multiplication to fail or return null.
C.The calculated field is defined in the wrong app context; it must be in the `system` app to be globally available.
D.The `EVAL-` expression must be enclosed in double quotes to be valid.
AnswerB

If `price` or `quantity` are extracted as strings, Splunk may not automatically convert them to numbers for arithmetic. The multiplication could result in null or an error. Splunk typically auto-converts numeric strings, but if the fields contain non-numeric characters (e.g., "$10"), the conversion fails. This is a common cause for calculated fields not producing expected results. The administrator should check field types or use functions like `tonumber()`.

Why this answer

Calculated fields require numeric operands for arithmetic. If `price` or `quantity` are extracted as strings with non-numeric characters, the multiplication may fail or return null, making the `total` field empty. The administrator should verify the field values or use `tonumber()` to force conversion.

Other options like app context or quoting are less likely given the scenario details.

Exam trap

The trap here is assuming that Splunk always auto-converts field values to numbers for arithmetic, overlooking cases where non-numeric characters cause conversion failures.

26
MCQmedium

A Splunk administrator wants to create a calculated field that combines the values of two existing extracted fields, 'src_ip' and 'dest_ip', into a new field named 'conversation' with a hyphen separating them. The administrator needs this field to be available in searches immediately without editing any configuration files on the indexers. Where should the administrator define this calculated field?

A.In the fields.conf file using the FIELDNAME and FIELDVALUE settings
B.In the calculated fields configuration page under Settings > Fields > Calculated Fields
C.In the transforms.conf file using the REGEX and FORMAT directives
D.In the search app's props.conf using the EVAL-conversation directive
AnswerB

The Calculated Fields configuration page in Splunk Web allows administrators to create calculated fields using a graphical interface, which writes the necessary props.conf stanzas automatically. This satisfies the requirement of immediate availability without manually editing configuration files on the indexers. The page supports defining an eval expression like 'src_ip . "-" . dest_ip' to produce the desired 'conversation' field.

Why this answer

Calculated fields are defined through the Calculated Fields configuration page in Splunk Web, which automatically updates props.conf with EVAL-<fieldname> directives. This method meets the requirement of immediate availability without direct file edits on indexers. The other options involve configuration files that either do not support calculated fields or require manual editing and restarts.

Exam trap

The trap here is assuming that calculated fields must be defined by directly editing props.conf, when Splunk Web provides a dedicated configuration page that achieves the same result without manual file changes.

27
MCQmedium

A security team wants every event that contains the string 'Failed password' to be automatically tagged as 'brute_force' so that analysts can later run a simple tag-based search without typing the full string each time. The tag should appear on matching events as soon as the search runs, with no index-time processing. Which of the following is the correct way to implement this?

A.Create a saved search that runs every five minutes and writes the tag into a lookup file, then use the lookup command in each analyst search.
B.Define an event type in eventtypes.conf whose search matches 'Failed password', then add the tag 'brute_force' to that event type so matching events receive the tag at search time.
C.Add a TRANSFORMS stanza in props.conf that runs a regex at index time and assigns the tag to the event's metadata.
D.Create a field alias in props.conf that maps a new field named 'brute_force' to the raw event text so that tag=brute_force resolves.
AnswerB

Event types are search-time definitions stored in eventtypes.conf, and tags are attached to event types in tags.conf. When a search runs, Splunk evaluates the event type's search against each event and applies the associated tag, so matching events are tagged 'brute_force' dynamically with no index-time work. Analysts can then use tag=brute_force directly.

Why this answer

Event types are search-time knowledge objects, and tags are applied by associating them with an event type. When a search evaluates the event type's search string, every matching event inherits the tag, so analysts can retrieve those events with tag=brute_force. This requires no index-time processing or reindexing, and the tag becomes visible as soon as the event type and tag configuration are saved and knowledge objects are refreshed.

Exam trap

The trap here is assuming tags must be written into the event data at index time, when in fact tags are search-time metadata attached to event types.

28
MCQeasy

Where can you define an event type?

A.In the indexer's inputs.conf file.
B.In the user's .bashrc file.
C.In the Settings > Event types menu.
D.Directly in the search head's license file.
AnswerC

Event types are created and managed centrally through Settings > Event types, where you define the search string and naming that Splunk uses to categorise matching events. This satisfies the question's requirement by naming the exact configuration location rather than a search-time command or props.conf stanza.

Why this answer

Event types can be defined through the Splunk Web interface under Settings > Event types. This menu allows users to create, edit, and manage event types, which are saved searches that categorize events based on search criteria. Event types are then used in other configurations, such as tags and alerts.

Exam trap

SPLK-1004 often tests where various configurations are located, and candidates may confuse event types with other settings like inputs.conf or transforms.conf, leading them to choose incorrect file-based options.

How to eliminate wrong answers

Option A is wrong because inputs.conf is used to configure data inputs on the indexer, not event types. Option B is wrong because .bashrc is a shell configuration file, unrelated to Splunk event types. Option D is wrong because the license file contains licensing information and cannot be used to define event types.

29
MCQeasy

Which of the following is true about field extractions?

A.They are only available for the 'admin' role.
B.They use regular expressions to parse data.
C.They must be defined at index time.
D.They only work on JSON data.
AnswerB

Field extractions derive searchable fields at search time by applying regular expressions to raw event data, either inline in the search or persisted in props.conf and transforms.conf. The regex captures named groups that become the extracted field values.

Why this answer

Field extractions in Splunk use regular expressions to parse raw data and extract fields. They can be defined at search time (via props.conf EXTRACT- or the UI) or at index time (via transforms.conf and props.conf), but the core mechanism is regex-based parsing.

Exam trap

SPLK-1004 often tests whether candidates know that field extractions are regex-based and can be search-time, not just index-time, and are not limited to JSON or admin roles.

How to eliminate wrong answers

Option A is wrong because field extractions are not restricted to the 'admin' role; they are available to any user with the appropriate permissions. Option C is wrong because field extractions can be defined at search time, not only at index time; in fact, search-time extractions are more common and flexible. Option D is wrong because field extractions work on any text data, not only JSON; JSON is just one format that can be parsed.

30
Multi-Selecthard

Which THREE of the following are true regarding the order of operations for search-time field extractions?

Select 3 answers
A.Lookups happen before field extraction.
B.Tags are applied after all other field operations.
C.Calculated fields are applied after field aliases.
D.Field aliases happen before field extraction.
E.Field extraction happens before field aliases.
AnswersB, C, E

Tags are applied last in the search-time extraction sequence, after inline and transform extractions have populated fields. This satisfies the stem's ordering constraint: tag evaluation depends on field values already existing, so deferring tag application until all other field operations complete ensures tags reflect the final extracted dataset.

Why this answer

Option B is correct because in Splunk's search-time knowledge object processing order, tags are applied last, after all other field operations such as extraction, aliasing, calculated fields, and lookups. Option C is correct because calculated fields are evaluated after field aliases, meaning aliases are resolved first and calculated fields can then reference the aliased names. Option E is correct because field extraction occurs before field aliases, so aliases can only rename fields that have already been extracted.

Option A is incorrect because lookups run after field extraction, not before, since lookups typically require extracted fields as input. Option D is incorrect because field aliases happen after field extraction, not before, as aliases depend on fields already existing from extraction.

Exam trap

SPLK-1004 often tests the exact sequence of search-time operations, and candidates commonly misplace lookups or aliases relative to extraction.

31
MCQeasy

A power user wants to add a calculated field named `response_time` to all events of the `web` sourcetype. The value should be the difference between two existing numeric fields, `end_time` and `start_time`, and must be available in every future search without retyping the eval command. Where should this be configured?

A.In transforms.conf as a REPORT stanza
B.In props.conf as an EVAL-response_time setting under the web sourcetype stanza
C.In fields.conf as a field alias
D.In savedsearches.conf as an automatic lookup
AnswerB

EVAL-<fieldname> in props.conf defines a calculated field that Splunk evaluates automatically at search time for events matching the stanza. Placing EVAL-response_time = end_time - start_time under [web] makes the difference available in every search of that sourcetype without manual eval commands, which is exactly the requirement.

Why this answer

Calculated fields are defined with EVAL-<fieldname> in props.conf, scoped to a host, source, or sourcetype stanza. Because the EVAL expression is evaluated at search time for every matching event, the derived response_time appears in all future searches of the web sourcetype without additional commands. The other files govern extraction, saved searches, or indexed-field behavior and cannot compute a per-event arithmetic value.

Exam trap

The trap here is confusing calculated fields with lookups or aliases, when only EVAL in props.conf computes a new value from existing fields at search time.

32
MCQmedium

A security analyst needs a calculated field named `risk_score` that evaluates to the numeric value 10 for every event in the `firewall` sourcetype, regardless of whether any other fields are present. The analyst has created the field in Settings > Fields > Calculated Fields, set the App context to `search`, and set the eval expression to `10`. However, searches in the `main` index for `sourcetype=firewall` do not display the `risk_score` field. Which of the following is the most likely cause?

A.Calculated fields are only applied to events that already have at least one extracted field, so events without fields are skipped.
B.The calculated field was created in the `search` app context, but the user lacks permission to access that app's calculated fields.
C.The search is running in a different app context than the one where the calculated field was defined, so the field is not applied.
D.Calculated fields cannot contain a constant expression; they must reference at least one existing field.
AnswerC

Calculated fields are scoped to the app in which they are defined. If the search runs in a different app context, the field definition is not loaded and risk_score will not appear. The analyst should either run the search in the same app or move the calculated field to a globally shared app such as search, ensuring the correct app context is active.

Why this answer

Calculated fields are app-scoped objects. When a search runs in an app other than the one where the calculated field was created, the field definition is not available, so the field does not appear. To make the field available across apps, it must be defined in a globally shared app or the search must run in the same app context.

Exam trap

The trap here is assuming that calculated fields are global once created, when in fact they are limited to the app context where they are defined.

33
MCQhard

An engineer defines a calculated field in Settings > Fields with the expression `eval total_bytes = upload_bytes + download_bytes` scoped to sourcetype `netflow`. Searches confirm the field appears. Later, a new field named `total_bytes` is extracted from the raw event by a search-time extraction. What is the resulting behavior for the calculated field?

A.The calculated field overwrites the extracted value because calculated fields run last.
B.The calculated field continues to apply and silently replaces the extraction at index time.
C.The extracted total_bytes value takes precedence, and the calculated field is not applied.
D.Both values are retained, and the field becomes multivalued with two entries.
AnswerC

Search-time field extractions run before calculated fields in the search-time operations order, and a calculated field will not overwrite a field that already exists on the event. Since the extraction now produces total_bytes, the calculated expression is skipped for those events, and the extracted value is what searches see.

Why this answer

Search-time extraction precedes calculated field evaluation, and calculated fields are applied only when their target field is absent. Once the extraction supplies total_bytes, the calculated expression is not executed for those events, so the extracted value is the one returned by searches.

Exam trap

The trap here is believing a calculated field always computes and overwrites, when Splunk actually skips the calculation whenever the target field already exists on the event.

34
MCQmedium

A user complains that a calculated field is not showing up. Which of the following is the best first step to troubleshoot?

A.Restart the Splunk service.
B.Check if the field is in the 'Selected Fields' or 'Interesting Fields' list.
C.Change the indexer's cluster master.
D.Delete the index and re-ingest the data.
AnswerB

Calculated fields only appear in the field sidebar once Splunk has indexed or extracted a value for them; checking the Selected Fields and Interesting Fields lists confirms whether the field exists in the current result set. This directly addresses the stem's constraint: verifying field visibility before investigating the calculation's syntax or permissions.

Why this answer

When a calculated field (defined via props.conf EVAL- or a calculated field in the UI) does not appear, the most likely cause is that the field was not extracted or the search did not return it in the current result set. The fastest, least invasive first step is to check whether the field appears in the 'Selected Fields' or 'Interesting Fields' sidebar, since Splunk only lists fields that were actually extracted in the returned events. This confirms whether the field exists at all before escalating to configuration or infrastructure changes.

Exam trap

SPLK-1004 often tests whether candidates jump to drastic remediation (restart, re-index) instead of performing the simplest, most logical first diagnostic step.

How to eliminate wrong answers

Option A is wrong because restarting the Splunk service is a heavy, disruptive action that does not address the most common cause of a missing calculated field (extraction or visibility), and it should never be the first troubleshooting step. Option C is wrong because changing the indexer's cluster master is unrelated to a single user's missing calculated field and would affect the entire deployment. Option D is wrong because deleting the index and re-ingesting data is destructive, unnecessary, and would not fix a field extraction or visibility problem.

35
MCQhard

A Splunk power user is troubleshooting a search that uses a calculated field named 'response_time' defined as 'duration_ms / 1000'. The field 'duration_ms' is extracted from raw events, but the calculated field returns null values for some events. Upon investigation, the user finds that 'duration_ms' is sometimes missing or contains non-numeric characters. Which of the following is the most likely reason for the null values in 'response_time'?

A.The field 'duration_ms' is not indexed, so it is not available for calculated fields.
B.The eval expression fails to handle non-numeric or missing values, resulting in null for those events.
C.The calculated field expression is evaluated before field extraction, so 'duration_ms' is not yet available.
D.The calculated field is defined with the wrong data type, causing Splunk to discard invalid results.
AnswerB

In Splunk, arithmetic operations on non-numeric or null values yield null. Since 'duration_ms' sometimes contains non-numeric characters or is missing, the division operation cannot produce a numeric result, leading to null for 'response_time'. To avoid this, the expression should include conditional logic, such as using the tonumber() function or a coalesce() to provide a default value.

Why this answer

Calculated fields use eval expressions that return null when operations encounter non-numeric or missing values. Since 'duration_ms' sometimes lacks numeric content, the division yields null. The correct approach is to use functions like tonumber() or coalesce() to handle such cases, ensuring a numeric result or a default value.

Exam trap

The trap here is assuming that calculated fields automatically handle type conversion or missing data, when in fact they propagate nulls unless explicitly managed with eval functions.

36
MCQmedium

You have a calculated field that performs a complex regex extraction and math calculation. When a user searches, the calculation is not appearing. What is the most likely cause?

A.The underlying extracted fields are not indexed.
B.The source fields required for the calculation are not extracted.
C.The lookup table is not defined.
D.The user lacks the 'can_run_calculated_fields' capability.
AnswerB

A calculated field only evaluates when its source fields exist in the event; if regex extraction never populated them, the calculation silently returns nothing. This satisfies the stem's constraint that missing extracted source fields cause the calculation to disappear.

Why this answer

Calculated fields in Splunk are evaluated at search time and depend on the source fields they reference being present in the events. If the fields used in the regex extraction or math calculation are not extracted (either via props.conf/transforms.conf or field extractions), the calculated field cannot compute a value and will not appear in results. The calculation itself does not require indexing of the extracted fields, only that the source fields exist at search time.

Exam trap

SPLK-1004 often tests the misconception that calculated fields require indexed fields or special capabilities, when in fact they are search-time evaluations dependent on extracted source fields.

How to eliminate wrong answers

Option A is wrong because calculated fields operate on search-time extracted fields; indexing is not required for the extracted fields to be used in a calculation. Option C is wrong because a lookup table is only relevant if the calculation explicitly uses lookup commands; the question describes a regex extraction and math calculation, not a lookup. Option D is wrong because there is no 'can_run_calculated_fields' capability in Splunk; calculated fields are governed by knowledge object permissions and search-time field availability, not a dedicated capability.

37
Multi-Selecteasy

Which TWO of the following are valid ways to create field extractions?

Select 2 answers
A.Editing indexes.conf.
B.Using the Field Extractor UI tool.
C.Modifying the raw log files on the disk.
D.Using the 'index' command in the search bar.
E.Editing props.conf and transforms.conf.
AnswersB, E

The Field Extractor UI provides a guided interface for selecting sample events and highlighting values, generating regex-based extractions without hand-editing configuration files. It satisfies the stem by being a supported, documented method for creating field extractions in Splunk.

Why this answer

Option B is correct because the Field Extractor UI tool in Splunk (accessible via Settings > Fields > Field Extractions or from the search results) provides a guided, interactive way to define regex-based or delimiter-based field extractions and automatically writes the resulting configuration to props.conf and transforms.conf. Option E is correct because editing props.conf and transforms.conf directly is the underlying, supported configuration method for creating field extractions: props.conf defines the stanza (sourcetype/host/source) and references a transform via REPORT or EXTRACT, while transforms.conf defines the regex or delimiter-based extraction logic. Option A is incorrect because indexes.conf controls index-level settings such as storage paths, retention, and sizing, not field extraction definitions.

Option C is incorrect because modifying raw log files on disk alters the source data itself and does not create any Splunk extraction configuration. Option D is incorrect because there is no 'index' search command that creates field extractions; the search bar is used for querying and testing extractions, not for defining them.

Exam trap

SPLK-1004 often tests whether candidates know that the Field Extractor UI and manual props.conf/transforms.conf edits are equivalent — the trap is assuming the UI is the only 'valid' method or that indexes.conf plays any role in extraction.

38
MCQmedium

A security team wants every event tagged with the sourcetype 'cisco:asa' to also carry the tag 'firewall' so analysts can search 'tag=firewall' without typing the sourcetype. A power user opens Settings > Tags and sees no existing tags for that sourcetype. What is the most efficient way to apply the tag to ALL current and future cisco:asa events?

A.Run a search that adds 'tag=firewall' to each event and save the results to a summary index
B.Create a calculated field named 'firewall' with the eval expression 'if(sourcetype=="cisco:asa", "true", "false")'
C.Edit each event's raw text with the 'replace' command to append the string 'firewall'
D.Create a tag named 'firewall' and apply it directly to the 'cisco:asa' sourcetype field value in the Tags settings page
AnswerD

Tagging a field value such as a sourcetype applies the tag to every event that shares that field value, including future events, because the tag is stored as a knowledge object against the value rather than the individual event. This satisfies the requirement with one configuration change and no per-event maintenance.

Why this answer

Tags in Splunk are knowledge objects attached to specific field/value pairs, and tagging a sourcetype value applies that tag to every event with that sourcetype. This is the only listed method that persists the tag for both existing and future events without altering raw data or creating a parallel dataset.

Exam trap

The trap here is assuming a tag can be added by transforming search results or raw text, when tags must be attached to a field value such as a sourcetype through the tagging interface or tags.conf.

39
MCQeasy

A power user has a lookup definition named `asset_lookup` that maps `host` to `owner` and `location`. In a search they run `| lookup asset_lookup host OUTPUT owner` and notice that the `location` field is absent from the results even though the CSV contains it. What is the reason?

A.The lookup definition was created without the location field in its field list.
B.The location column contains null values for the matched hosts.
C.A field alias for location overrides the lookup output and hides the field.
D.The OUTPUT clause lists only `owner`, so only that field is returned from the lookup.
AnswerD

The lookup command returns only the fields named in its OUTPUT clause. Because the search specifies OUTPUT owner, the location column from the CSV is not attached to the events. To bring in location as well, the analyst must add it to the OUTPUT list, for example OUTPUT owner, location.

Why this answer

The lookup command attaches only the fields explicitly named in its OUTPUT clause. Since the search lists just owner, the location column is never copied onto the events, regardless of what the CSV or lookup definition contains. Adding location to the OUTPUT list resolves the problem.

Exam trap

The trap here is assuming a lookup returns every column in the CSV, when in fact the OUTPUT clause strictly limits which fields are attached to the events.

40
Multi-Selectmedium

A team is standardizing a lookup file `product_catalog.csv` that maps `product_id` to `product_name`, `category`, and `list_price`. They want searches to automatically enrich events that contain a matching `product_id`. Which two configurations accomplish this automatic enrichment? (Choose two.)

Select 2 answers
A.Define the lookup in transforms.conf with `filename = product_catalog.csv` and reference it from props.conf with `LOOKUP-product = product_lookup product_id OUTPUT product_name, category, list_price`.
B.Add `EVAL-product_name = lookup(product_catalog.csv, product_id, product_name)` to props.conf for the sourcetype.
C.Run `| lookup product_catalog.csv product_id OUTPUT product_name, category, list_price` at the end of each relevant search.
D.Create the lookup definition in Settings > Lookups, then add an automatic lookup rule specifying the lookup, the input field `product_id`, and the output fields.
E.Import the CSV as a KV Store collection and enable automatic enrichment on the collection.
AnswersA, D

A transforms.conf stanza declares the lookup table and filename, and a LOOKUP- stanza in props.conf automatically applies it at search time for the scoped sourcetype or source. This pairing enriches matching events with the OUTPUT fields without any explicit lookup command, which is exactly the automatic behavior the team wants.

Why this answer

Automatic enrichment requires a lookup definition plus an automatic lookup binding. Writing the transforms.conf stanza and props.conf LOOKUP- reference directly, or using the Settings > Lookups workflow that generates those same stanzas, both cause matching events to be enriched at search time without an explicit lookup command.

Exam trap

The trap here is treating the lookup command as equivalent to an automatic lookup, when the command enriches only the search it appears in and never applies automatically to other searches.

41
MCQhard

You are configuring a field lookup that needs to execute automatically for every search on a specific sourcetype. Where is the most appropriate place to configure this?

A.props.conf
B.indexes.conf
C.lookups.conf
D.transforms.conf
E.savedsearches.conf
AnswerA

props.conf defines sourcetype-level settings, including automatic lookups that Splunk applies to every event of that sourcetype during search-time field extraction. Configuring the lookup there satisfies the requirement that it run automatically for every search on the specified sourcetype.

Why this answer

Automatic lookups that run for every search on a specific sourcetype are configured in props.conf using the `LOOKUP-<name>` setting. This setting associates a lookup definition (defined in transforms.conf) with a sourcetype, and the lookup is applied automatically at search time. This is the most appropriate place because props.conf controls sourcetype-specific configurations.

Exam trap

SPLK-1004 often tests the distinction between props.conf and transforms.conf for lookup configuration, and candidates may incorrectly choose transforms.conf because it defines the lookup, forgetting that props.conf is needed to apply it automatically to a sourcetype.

How to eliminate wrong answers

Option B is wrong because indexes.conf is used to configure index settings such as retention, size, and path, not lookups. Option C is wrong because lookups.conf is used to define lookup table files and their properties, but it does not control when lookups are applied to sourcetypes. Option D is wrong because transforms.conf defines the lookup definition (e.g., which fields to match), but it does not specify automatic application to a sourcetype; that is done in props.conf.

Option E is wrong because savedsearches.conf is used to define saved searches and alerts, not automatic lookups.

42
MCQhard

A Splunk administrator defines a calculated field in props.conf with EVAL-total_bytes that sums two extracted fields, bytes_in and bytes_out. After saving, searches on the sourcetype still do not show total_bytes, although bytes_in and bytes_out appear correctly. The administrator confirms the stanza name matches the sourcetype exactly. Which of the following is the most likely explanation?

A.The EVAL expression uses field names that are not yet extracted at the point the calculated field is evaluated, so the calculation yields null.
B.The calculated field was defined in a props.conf file that is not in the app context currently applied to the search, or the knowledge objects have not been reloaded.
C.The field name total_bytes is a reserved Splunk internal field and is silently dropped from calculated field output.
D.Calculated fields cannot sum numeric fields; they only support string concatenation and conditional expressions.
AnswerB

props.conf changes are scoped to the app in which they are defined, and searches only see knowledge objects from apps in the user's context. If the file was edited in a different app than the one being searched, or if the configuration was not reloaded, the EVAL will not take effect. This is the most likely cause when the stanza name is otherwise correct.

Why this answer

Calculated fields are app-scoped knowledge objects, so a props.conf defined in one app is not visible to searches running in another app's context. Even within the correct app, the configuration must be reloaded or the search head restarted for changes to take effect. When the stanza name and expression are correct but the field is still missing, app context and configuration reload are the prime suspects.

Exam trap

The trap here is focusing on the EVAL expression syntax when the real issue is that the configuration lives in an app context the search cannot see.

43
MCQeasy

Which of the following best describes the difference between an event type and a tag?

A.Event types group events by search criteria, while tags label field values.
B.Event types are only for reports, while tags are for dashboard panels.
C.Event types only work in the search bar.
D.Tags are faster than event types for searching.
AnswerA

Event types classify events by matching search criteria against indexed data, dynamically grouping results at search time. Tags, by contrast, apply static labels to specific field-value pairs, enabling quick filtering without re-evaluating a search. This distinction satisfies the stem's requirement to differentiate their grouping and labelling roles.

Why this answer

An event type is a saved search that categorizes events based on search criteria, effectively grouping events that match a certain pattern. A tag, on the other hand, is a label applied to specific field-value pairs, allowing you to search for events with that tag. This distinction — event types group events by search criteria, tags label field values — is the fundamental difference.

Exam trap

SPLK-1004 often tests the confusion between event types and tags — candidates who think tags are faster or that event types are only for reports miss the core distinction that event types group by search criteria while tags label field values.

How to eliminate wrong answers

Option B is wrong because event types and tags are not limited to reports or dashboard panels; both are knowledge objects usable across searches, alerts, and dashboards. Option C is wrong because event types are not limited to the search bar; they can be used in any search context, including reports and alerts. Option D is wrong because tags are not inherently faster than event types for searching; both are search-time constructs, and performance depends on the underlying search and index, not on the mechanism itself.

44
MCQmedium

A Splunk power user is building a dashboard that must display the total revenue per product category. The raw events contain a field named `price` (numeric) and a field named `quantity` (numeric). The user wants to create a calculated field named `revenue` that multiplies these two fields, and ensure it is available for all future searches without modifying the raw data. Which of the following is the correct method to achieve this?

A.Use the `eval` command in each search to create the `revenue` field, and save the search as a report to ensure it is always available.
B.Create a lookup definition that maps each combination of `price` and `quantity` to a precomputed `revenue` value, and configure automatic lookup.
C.Create a field extraction using the Interactive Field Extractor (IFX) and define a regular expression to capture the product of price and quantity.
D.Define a calculated field in the `props.conf` file using the `EVAL-revenue` setting that evaluates `price * quantity`.
AnswerD

Calculated fields are defined in `props.conf` using `EVAL-<fieldname> = <expression>`. This creates a new field at search time without altering raw data. The expression `price * quantity` will compute the revenue for each event. This is the correct approach because it persists across searches and is the standard method for deriving new fields from existing ones in Splunk.

Why this answer

Calculated fields are defined in `props.conf` using the `EVAL-<fieldname>` syntax. They compute new fields at search time based on existing fields, without modifying raw data. This makes them ideal for creating derived fields like `revenue` that should be available across all searches.

The other options either do not persist, are not designed for calculations, or are impractical for dynamic computations.

Exam trap

The trap here is confusing calculated fields with field extractions or lookups, which serve different purposes and cannot perform arithmetic operations.

45
MCQhard

A Splunk administrator is configuring a field extraction for a custom sourcetype. The raw event data contains a field named `user` that sometimes includes a domain prefix (e.g., `DOMAIN\username`). The administrator wants to create a new field `username` that contains only the username portion, stripping the domain prefix if present. The extraction should work at search time and be available for all users. Which of the following is the most efficient and correct method?

A.Use a field alias in `props.conf` to map `username` to `user`.
B.Define a search-time field extraction using a regular expression in `props.conf` with `EXTRACT-username = (?<username>[^\\\\]+)$`.
C.Create a calculated field using `EVAL-username = replace(user, "^[^\\\\]+\\\\", "")` in `props.conf`.
D.Create a lookup table that maps `user` to `username` and configure an automatic lookup.
AnswerC

This approach uses a calculated field with the `replace()` function to strip the domain prefix using a regular expression. The regex `^[^\\\\]+\\\\` matches one or more non-backslash characters followed by a backslash, effectively removing the domain and the backslash. Calculated fields are evaluated at search time only when the field is used, making this efficient. Defining it in `props.conf` makes it available to all users of the app.

Why this answer

Calculated fields using `EVAL-` in `props.conf` allow for dynamic transformation of field values at search time. Using `replace()` with a regular expression to strip the domain prefix is efficient and only executes when the field is referenced. This method ensures the transformation is applied consistently and is available to all users of the app.

Other methods like field aliases or lookups do not perform the necessary string manipulation.

Exam trap

The trap here is confusing field aliases with calculated fields; aliases cannot transform values, they only rename them.

46
MCQmedium

You have a field 'status' that contains numerical codes. You want to create a field 'status_desc' that maps these codes to human-readable text. What is the recommended tool?

A.Calculated Field
B.Event Type
C.Field Lookup
D.Field Alias
AnswerC

Field Lookup maps a key field to a lookup definition, returning the corresponding descriptive value from a CSV or KV Store lookup table. This directly satisfies the requirement to translate numerical status codes into human-readable text, and is the documented Splunk method for enriching events with external reference data.

Why this answer

A field lookup is the recommended tool because it maps values from an existing field (like numerical status codes) to corresponding values in a lookup table (like human-readable descriptions). This is a classic lookup use case: enriching event data with external reference information without modifying raw data. Calculated fields, event types, and field aliases cannot perform this code-to-text mapping from an external table.

Exam trap

SPLK-1004 often tests the distinction between lookups (external value mapping) and calculated fields (eval-based computation), causing candidates to confuse enrichment with derivation.

How to eliminate wrong answers

Option A is wrong because calculated fields use eval expressions to compute new fields from existing data, not to map codes to descriptions from an external reference table. Option B is wrong because event types are used to categorize and tag groups of similar events for filtering and alerting, not for value mapping. Option D is wrong because a field alias simply creates an alternate name for an existing field, it does not translate values.

47
MCQmedium

You have a field 'ip_address' and want to tag it with 'internal' for specific subnets. What is the most efficient way to manage this?

A.Manually tag every IP event one by one.
B.Write a search that updates the raw data.
C.Create an event type for the subnet, then tag the event type.
D.Use a calculated field to add the tag.
AnswerC

Event types classify events by search criteria, so tagging the event type applies the 'internal' tag to every matching subnet event without editing each event. This centralised approach is more efficient than tagging individual events or lookup files.

Why this answer

Event types let you define a reusable search-based classification (e.g., src_ip within internal subnets), and tags applied to the event type automatically propagate to all matching events. This is far more efficient than tagging individual events and keeps the tagging logic centralized and maintainable.

Exam trap

SPLK-1004 often tests the misconception that searches can modify raw indexed data, when Splunk's architecture makes indexed data immutable and all enrichment happens via knowledge objects at search time.

How to eliminate wrong answers

Option A is wrong because manually tagging every IP event is impractical at scale and creates massive maintenance overhead with no consistency. Option B is wrong because Splunk does not allow searches to modify raw indexed data — raw data is immutable once indexed; only knowledge objects like tags, event types, and lookups can enrich it at search time. Option D is wrong because calculated fields create new fields at search time based on eval expressions; they do not apply tags, and tags are a separate knowledge object mechanism.

48
MCQhard

A power user configures an automatic lookup that enriches events with a `priority` field from a CSV, and also defines a calculated field `severity = priority * 10` via EVAL in props.conf. After deploying, `severity` is always null. What is the cause?

A.Calculated fields are evaluated before automatic lookups run, so priority does not exist yet when severity is computed
B.The CSV lookup does not support numeric fields, so priority cannot be multiplied
C.The lookup definition must set `max_matches` to a value greater than one for the enriched field to be visible to EVAL
D.The EVAL expression must use the `eval` command syntax with quotes around field names
AnswerA

Calculated fields execute during search-time field resolution, which occurs before lookup enrichment. At that point priority has not been added to the event, so the expression resolves to null and severity is never populated. The fix is to compute severity in the search after the lookup, or use a different mechanism that runs after enrichment.

Why this answer

Calculated fields are evaluated during the field resolution phase, which precedes automatic lookup enrichment. Because priority is added only when the lookup runs, the EVAL expression sees no such field and produces null. Resolving this requires computing severity after enrichment, for example with an eval command placed after the lookup in the search, or by restructuring the enrichment so the dependency is satisfied.

Exam trap

The trap here is assuming a valid EVAL expression guarantees a value, when the referenced field simply does not exist yet at the stage calculated fields are evaluated.

Ready to test yourself?

Try a timed practice session using only Field Management And Calculated Fields questions.