QuestionQ30

VerifiedSearch Language Fundamentals

Which stats command function returns the count of unique values for a specified field in the result set?

Explanation

dc(field) is the valid abbreviation for Splunk’s distinct_count(field) aggregate function, which returns the number of distinct values in the specified field. count(field) counts occurrences with a value rather than unique values.

Learn more

Community Discussion

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