Splunk Search

How to concatenate strings with special characters?

tondapi
New Member

Hi,

How can I concatenate Start time and duration in below format. Right now I am using this, but it is only half working.

... | eval newField= Start_time."".duration 

Desired format : 01:40[20m]

Tags (2)
0 Karma

woodcock
Esteemed Legend

You just need spacing, like this:

...| eval newField = Start_time . "[" . duration . "]"
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...