Splunk Search

How to combine 2 fields into 1 in Splunk in an alternate approach?

pavanae
Builder

I have a Splunk search outputs result as follows. 

Detailslink

Product Details :

Product 1:- ABC123

Product 2:- DEF456

abcd_website

 

Now how do I combine both the fields into 1 as follows 

Detailslink

Product Details :

Product 1:- ABC123

link:- abcd_website

Product 2:- DEF456

abcd_website

 

The below eval condition giving me the result as follows 

 

| eval Details = Details + link

 

 

Detailslink

Product Details :

Product 1:- ABC123

Product 2:- DEF456

link:- abcd_website

abcd_website

 

I do not want to add that link at the end. but wanted that somewhere in the middle after a specific field. Also, I do not want to touch or edit the Details field although thats an easy way but it comes from a macro and which used by many searches. I am looking for an alternate way, so that I can update the Details for a specific search?

Labels (4)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...