exam questions

Exam SPLK-1001 All Questions

View all questions & answers for the SPLK-1001 exam

Exam SPLK-1001 topic 1 question 166 discussion

Actual exam question from Splunk's SPLK-1001
Question #: 166
Topic #: 1
[All SPLK-1001 Questions]

Will the queries following below get the same result?
1. index=log sourcetype=error_log status !=100
2. index=log sourcetype=error_log NOT status =100

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ja5656
8 months, 3 weeks ago
B is correct.Query No.2 also returns events that do not include the status field.
upvoted 1 times
...
Nanila
1 year, 11 months ago
They will give the same results. != (Means not equal to)
upvoted 2 times
celticspike
1 year, 9 months ago
While != does mean not equal to, the answer here is NO. error_log status !=100 will return events that have the field error_log status but exclude events where the field value is 100. on the other hand error_log NOT status =100 would potentially return events that do mention error_log but not error_log status
upvoted 7 times
...
...
reyangelo
2 years ago
Answer is No. I can run a query to search httpCode!=200 and get no results (most likely 200's which is good). I rerun as NOT httpCode=200 and get a couple events rendering no httpCode but instead a loglevel. Odd but think it is the reason help view any events which are not registering a particular field. Again, just a thought on reason this should be "No".
upvoted 4 times
...
TeeCeeP
2 years, 1 month ago
If we know for sure the error_log has the status field, then YES. If we do not know, then NO. We need for data for this question.
upvoted 1 times
...
LeandroJ
2 years, 1 month ago
Hello I'm Leandro from Argentina, i think the answer could be YES! • Does != and NOT ever yield the same results? – Yes, if you know the field you’re evaluating always exists in the data you’re searching – For example:  index=web sourcetype=access_combined status!=200  index=web sourcetype=access_combined NOT status=200 yields same results because status field always exists in access_combined sourcetype
upvoted 4 times
gcalcaterra
2 years, 1 month ago
Yes, the question should be if always it will bring the same set of results...
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...