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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...