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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

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

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...