Splunk Search

How to combine specific values from two multivalue fields

valaverdyan
Engager

I have Splunk pulling in data from a lookup and creating two multivalue fields. I want to combine these two into a third one based on the value index.

Example:
Field 1: A,B,C,D
Field 2: 1,2,3,4

I want the third field to look like this:
Field 3: A1, B2, C3, D4

The number of values in the fields are subject to change so is it possible to do this in an automated way as opposed to manually evaling it?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Check out the mvzip function for eval.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Check out the mvzip function for eval.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...