Splunk Search

How make a string field multivalued?

pfabrizi
Path Finder

I have a event field that comes in as a string that is comma separated.
field look like https://google.con,https://Microsoft.com,https://splunk.com

In my props I have an eval:
EVAL-urls = split(urls, ",")

when searched we only see the https://google.com is the urls field.

How can I make this multivalued ?

Thanks!

Tags (1)
0 Karma

somesoni2
Revered Legend
0 Karma

pfabrizi
Path Finder

can I use a makemv in a props.conf?

0 Karma

kmorris_splunk
Splunk Employee
Splunk Employee

Try using the makemv command. This will take a single value field with a delimited list of values and turn it into a multivalued field.

http://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Makemv

0 Karma

pfabrizi
Path Finder

can I use this in a props.conf?
if so what would the command look like?

thanks!

0 Karma
Get Updates on the Splunk Community!

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

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...