Courseiva
Basic Searching and Transforming CommandshardMultiple ChoiceObjective-mapped

SPLK-1001 Basic Searching and Transforming Commands Practice Question

A search returns events with a field 'duration' in milliseconds. The analyst wants to create a new field 'duration_sec' that divides duration by 1000. Which command accomplishes this?

⚠ Common exam trap

Splunk often tests the distinction between `eval` (for calculations and new field creation) and `convert` (for data type conversion), leading candidates to mistakenly choose `convert` for arithmetic operations.

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

| eval duration_sec = duration / 1000

The `eval` command in Splunk is specifically designed to create new fields by evaluating expressions, including arithmetic operations. Using `| eval duration_sec = duration / 1000` creates a new field `duration_sec` that contains the value of `duration` divided by 1000, converting milliseconds to seconds.

Answer analysis

Option-by-option breakdown

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

  • | rename duration as duration_sec

    Why it's wrong here

    Does not perform division.

  • | convert duration_sec = duration/1000

    Why it's wrong here

    convert does not support arithmetic.

  • | eval duration_sec = duration / 1000

    Why this is correct

    eval creates new field with arithmetic.

  • | fields duration_sec = duration/1000

    Why it's wrong here

    fields command does not support expressions.

About these practice questions

Courseiva writes every SPLK-1001 question from scratch — 502 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.