nerdexam
Splunk

SPLK-1002 · Question #89

Complete the search, .... | _____ failure>successes

The correct answer is B. Where. The 'where' command evaluates a boolean expression and filters search results, making it the correct command for comparisons like 'failure > successes'.

Filtering and Grouping Results

Question

Complete the search, .... | _____ failure>successes

Options

  • ASearch
  • BWhere
  • CIf
  • DAny of the above

How the community answered

(59 responses)
  • A
    7% (4)
  • B
    88% (52)
  • C
    3% (2)
  • D
    2% (1)

Why each option

The 'where' command evaluates a boolean expression and filters search results, making it the correct command for comparisons like 'failure > successes'.

ASearch

The search command filters using keywords and field-value pairs but does not evaluate arithmetic or comparison expressions between two fields the way where does.

BWhereCorrect

The where command accepts an eval-style boolean expression and retains only the events for which the expression is true; 'where failure>successes' compares the values of two fields and keeps only events where the failure field value exceeds the successes field value.

CIf

If is an eval function used within expressions to return conditional values, not a standalone search command that filters events from a pipeline.

DAny of the above

Not any of the above is correct because only the where command properly handles field-to-field comparison expressions in a Splunk search pipeline.

Concept tested: Splunk where command field comparison filtering

Source: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Where

Topics

#SPL#filtering results#where command#boolean expressions

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice