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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...