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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...