Splunk Search

Extract Multiple String Values from Key

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=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

somesoni2
Revered Legend

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

sudosplunk
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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...