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!

Automated Threat Analysis: Available in ES Premier

Automated Threat Analysis: Centralize and Accelerate Phishing Investigations in Splunk Enterprise ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...