Splunk Search
Highlighted

Extract Multiple String Values from Key

Engager

I am looking to return the multiple values I have on my dashboard currently only one shows up. Here is an example:
Key=HI,bye,Good 
On my dashboard only the first value ('HI') 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
Highlighted

Re: Extract Multiple String Values from Key

Motivator

Hi there,

Can you paste the extraction you're using for current fields and perhaps some sample data with Key-value(s).

0 Karma
Highlighted

Re: Extract Multiple String Values from Key

SplunkTrust
SplunkTrust

Since comma is a word terminator, the auto-kv extraction in Splunk is truncating the value to first word (HI). If you've control over how these values are logged, you can enclose them in double quotes and Splunk's auto-kv process should be able to extract all values.
If you can't update the logging, you can then setup custom field extraction to extract all values (or do it inline in the search using rex command). See this on how to setup custom field extractions:
http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/Configureinlineextractions

0 Karma