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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...