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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...