Getting Data In

How to expand values for a field to multiple lines?

adolan
New Member

Hi,

I have a field that I want to expand to multiple lines (it's email transactions), so I have a CSV of:

source,destination
joe@x.com,jane@y.com
joe@x.com,jane@y.com;bill@y.com

I want to expand this to 3 lines, which I think mvexpand should do, but it doesn't work and I can't figure out to tell it what the delimiter (";") is.

Desired:
source,destination
joe@x.com,jane@y.com
joe@x.com,jane@y.com
joe@x.com,bill@y.com

0 Karma

woodcock
Esteemed Legend

You have to make it a multivalued field first:

... | makemv delim=";" destination | mvexpand destination
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...