Exam4Training

What does the following search do?

What does the following search do?

A . Creates a table of the total count of users and split by corndogs.
B . Creates a table of the total count of mysterymeat corndogs split by user.
C . Creates a table with the count of all types of corndogs eaten split by user.
D . Creates a table that groups the total number of users by vegetarian corndogs.

Answer: B

Explanation:

The search string below creates a table of the total count of mysterymeat corndogs split by user. | stats count by user | where corndog=mysterymeat.

The search string does the following:

It uses the stats command to calculate the count of events for each value of the user field. The stats command creates a table with two columns: user and count.

It uses the where command to filter the results by the value of the corndog field. The where command only keeps the rows where corndog equals mysterymeat.

Therefore, the search string creates a table of the total count of mysterymeat corndogs split by user.

Exit mobile version