Courseiva
Basic Searching and Transforming CommandshardMultiple ChoiceObjective-mapped

SPLK-1001 Basic Searching and Transforming Commands Practice Question

An analyst wants to find events where the field 'user' is not present. Which search correctly identifies such events?

⚠ Common exam trap

Splunk often tests the misconception that `user=""` or `user=null` can detect missing fields, when in fact they only match fields with empty or literal null values, not absent fields.

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

NOT isnotnull(user)

The `NOT isnotnull(user)` search uses the `isnotnull()` function to check if the `user` field exists and is not null, then negates it with `NOT` to return only events where the `user` field is absent or null. In Splunk, fields that are not present in an event are considered null, so this combination accurately identifies events lacking the field.

Answer analysis

Option-by-option breakdown

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

  • user=null

    Why it's wrong here

    Splunk does not support null in that syntax; it might cause an error.

  • -user

    Why it's wrong here

    A leading dash typically excludes field values, not the field itself.

  • NOT isnotnull(user)

    Why this is correct

    isnotnull returns true if the field exists; NOT isnotnull finds events without the field.

  • user=""

    Why it's wrong here

    This would match events where user is an empty string, not missing.

About these practice questions

This SPLK-1001 question is part of Courseiva's 502-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.