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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...