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!

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...