SPLK-1001 · Question #193
What is the correct syntax to count the number of events containing a vendor_action field?
The correct answer is C. stats count (vendor_action). The stats command calculates statistics based on fields in the events. The count function counts the number of events that match the criteria. The syntax is stats count (field_name), where field_name is the name of the field that contains the value to be counted. In this case…
Question
What is the correct syntax to count the number of events containing a vendor_action field?
Options
- Acount stats vendor_action
- Bcount stats (vendor_action)
- Cstats count (vendor_action)
- Dstats vendor_action (count)
How the community answered
(36 responses)- A8% (3)
- B3% (1)
- C83% (30)
- D6% (2)
Explanation
The stats command calculates statistics based on fields in the events. The count function counts the number of events that match the criteria. The syntax is stats count (field_name), where field_name is the name of the field that contains the value to be counted. In this case, vendor_action is the field name, so stats count (vendor_action) is the correct syntax.
Topics
Community Discussion
No community discussion yet for this question.