Courseiva
Using Fields and LookupseasyMultiple ChoiceObjective-mapped

SPLK-1001 Using Fields and Lookups Practice Question

A user wants to rename the field 'src_ip' to 'sourceIP' in all search results without modifying the raw data. Which method should they use?

⚠ Common exam trap

Many exam-takers confuse the `rename` command with the `eval` command for creating aliases, or mistakenly think the `fields` command can rename fields, when in fact `fields` only controls field inclusion/exclusion and has no rename capability.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the rename command: | rename src_ip as sourceIP

The `rename` command is the correct choice because it changes the field name in the search results without altering the underlying raw data. It operates on the field metadata in the search pipeline, allowing you to display 'sourceIP' instead of 'src_ip' for the duration of the search.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use the eval command to assign src_ip to a new field sourceIP

    Why it's wrong here

    eval creates a new field; the original field still exists.

  • Add an alias in props.conf

    Why it's wrong here

    Aliases in props.conf are applied at index time, not in search output.

  • Use the fields command: | fields src_ip as sourceIP

    Why it's wrong here

    fields command does not support renaming; it only includes/excludes.

  • Use the rename command: | rename src_ip as sourceIP

    Why this is correct

    The rename command renames the field in the search results.

About these practice questions

One of 502 original SPLK-1001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SPLK-1001 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1001 exam.