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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...