Splunk Search

Merge 3 Splunk field into 1?

POR160893
Builder

Hi,

I am trying to concatenate 3 fields into 1 field but I am unable to do so.

I tried:

POR160893_0-1665051787383.png


and this:

POR160893_1-1665051840074.png

Can someone help? There should be a single column of emails with 1 email per row.

Thanks!

Labels (3)
0 Karma
1 Solution

POR160893
Builder

Solved:

|table Reply_to_Email_Address, Return_Path_Email_Address, From_Email_Address
|eval Spoofed = mvappend(Reply_to_Email_Address, Return_Path_Email_Address, From_Email_Address )
| mvexpand Spoofed
|table Spoofed
|dedup Spoofed

 
 

View solution in original post

0 Karma

POR160893
Builder

Solved:

|table Reply_to_Email_Address, Return_Path_Email_Address, From_Email_Address
|eval Spoofed = mvappend(Reply_to_Email_Address, Return_Path_Email_Address, From_Email_Address )
| mvexpand Spoofed
|table Spoofed
|dedup Spoofed

 
 
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

use mvexpand newField in the first search

0 Karma

POR160893
Builder

I am still getting 3 emails per a single row ...

POR160893_0-1665052972057.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The first search used mvappend - add mvexpand to that search (not a different search with mvzip!)

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...