Splunk Search

how to add a string to a table element?

wsw70
Communicator

Hello

I have two fields field1 and field2 extracted from my search and I would like to present then in a table, with a string prepended to one of them, something like:

field1 | http://example.com?field2

where http://example.com? is a fixed string.

Is this possible?

Thank you!

Tags (1)
1 Solution

aweitzman
Motivator

eval is your friend.

search-that-returns-fields | eval newfield="http://example.com?"+field2 | table field1 newfield

View solution in original post

aweitzman
Motivator

eval is your friend.

search-that-returns-fields | eval newfield="http://example.com?"+field2 | table field1 newfield

Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...