Splunk Search

Combining two fields into one field

psomeshwar
Path Finder

I currently have two different fields

Host                     Domain

F32432KL34    domain.com

I wish to combine these into one field that shows the following:

F32432KL34@domain.com

How would you suggest going about this?

Labels (4)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Small fix

| eval MyNewField=Host+"@"+Domain

 

View solution in original post

burwell
SplunkTrust
SplunkTrust

How about

| eval MyNewField=Host+Domain

isoutamo
SplunkTrust
SplunkTrust

Small fix

| eval MyNewField=Host+"@"+Domain

 

burwell
SplunkTrust
SplunkTrust

Thanks @isoutamo 

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...