SPLK-1001 Exam QuestionsBrowse all questions from this exam

SPLK-1001 Exam - Question 202


What is the result of the following search?

index=myindex source=c:\mydata.txt NOT error=*

Show Answer
Correct Answer: B

The search query index=myindex source=c:\mydata.txt NOT error=* will return events from the 'myindex' index, where the source is 'c:\mydata.txt' and the 'error' field is not present. The condition 'NOT error=*' filters out events that have any value in the 'error' field, which means it will only include events where the 'error' field does not exist.

Discussion

3 comments
Sign in to comment
Uvasta
May 28, 2024

I think is correct

Uvasta
May 29, 2024

B pdf page 55

lordnats
Sep 18, 2024

The search index=myindex source=c:\mydata.txt NOT error=* will return events from the "myindex" index, where the source is "c:\mydata.txt" and the "error" field is not present. The "NOT error=*" condition filters out events that have any value in the "error" field, leaving only events that do not contain the "error" field.