QuestionQ100

VerifiedUsing Fields in Searches

What is the proper syntax for counting the number of events that contain a vendor_action field?

Explanation

The Splunk stats command performs aggregate calculations, and count(vendor_action) is the count aggregation for the vendor_action field. Therefore, stats count(vendor_action) is the valid syntax.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!