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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...