Splunk Search

How to count number of values in multi-valued field?

marinella26
Explorer

Hello!

I want to know how to count numbers of field values.

Currently I have two fields, something like:

User - Anna
Class - Math, Science, English

The “Class" field is a multivalued field, and i want the output to be something like this:

User - Anna
Class - Math, Science, English

Class_Number - 3

 

Is there an easy way to count how many values are in a multivalued field and show it?

Thanks in advance!

Labels (6)
0 Karma
1 Solution

marinella26
Explorer

Thank you so much!!

0 Karma
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...