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'.
Question
Complete the search, .... | _____ failure>successes
Options
- ASearch
- BWhere
- CIf
- DAny of the above
How the community answered
(59 responses)- A7% (4)
- B88% (52)
- C3% (2)
- D2% (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'.
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.
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.
If is an eval function used within expressions to return conditional values, not a standalone search command that filters events from a pipeline.
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
Community Discussion
No community discussion yet for this question.