QuestionQ100Verified/Using Fields in SearchesCopy linkReport a problemAsk AstroTutorSave questionWhat is the proper syntax for counting the number of events that contain a vendor_action field?Acount stats vendor_actionBcount stats (vendor_action)Cstats count (vendor_action)Dstats vendor_action (count)Show AnswerAnswerExplanationThe 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 morestats command: Overview, syntax, and usageShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion