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.pngPOR160893_0-1665051787383.png


and this:

POR160893_1-1665051840074.pngPOR160893_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.pngPOR160893_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!

All Work and No Play? Not at .conf26! Unwind at These Evening Events

Between hands-on technical sessions, keynote reveals, and diving into live architectures, .conf26 is packed ...

Join the Hackathon at .conf26 and build a No-Code AI agent

Join us for the AI Agent Buildathon, an in-person, three-hour hands-on Hackathon where you’ll use Splunk Agent ...

Level Up Your Workflow: Mastering Splunk Cloud Management via Terraform

Tech Talk Recap   From Chaos to Control: Scaling Splunk Cloud with Infrastructure as Code Managing apps in ...