ExamGecko
Question list
Search
Search

Question 227 - SPLK-1001 discussion

Report
Export

Which of the following searches would return only events that match the following criteria?

• Events are inside the main index

• The field status exists in the event

• The value in the status field does not equal 200

A.
index==main status!==200
Answers
A.
index==main status!==200
B.
index=main NOT status=200
Answers
B.
index=main NOT status=200
C.
index==main NOT status==200
Answers
C.
index==main NOT status==200
D.
index-main status!=200
Answers
D.
index-main status!=200
Suggested answer: C

Explanation:

The Kusto Query Language (KQL) is the language you use to query data in Azure Data Explorer [1]. It's a powerful language that allows you to perform advanced queries and extract meaningful insights from your data.

To query for events that match the criteria you specified, you would use the following KQL query:

index==main NOT status==200

This query will return all events that are inside the main index and have a status field, but the value of the status field does not equal 200. It is important to note that the "NOT" operator must be used in order to exclude events with a status value of 200.

By using the "NOT" operator, the query will return only events that do not match the specified criteria. This is useful for narrowing down search results to only those events that are relevant to the query.

asked 23/09/2024
Paul A
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first