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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...