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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...