Getting Data In

Multiple Values in Key/Value pair

ebkeys94
Engager

I am looking to return the multiple values I have on my dashboard currently only one shows up. Here is an example:

Key=1,2,3

On my dashboard only the first value ('1') will show up. How can I get all values to show up and this should work no matter how many values may belong to a certain key.

Thanks!

0 Karma

yannK
Splunk Employee
Splunk Employee

It may depend how you extracted the field. You may have to redefine an extraction regex, then do the makemv parsing.

example : with an event like Key=1,2,3

  <mysearch > | rex "Key=(?<Key_singlevalue>[\d,]*) "  |  eval Key_multivalue=Key_singlevalue | makemv delim="," Key_multivalue | table Key, Key_singlevalue, Key_multivalue 

Take a look at the multivalues functions
http://docs.splunk.com/Documentation/Splunk/7.1.2/Search/Parsemultivaluefields

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...