Splunk Search

Eval Input Token with Backslashes

pduvofmr
Path Finder

Hi @ All,

i know, ther are many diskussions about this topic, but nobody sent his solution 😞

MY CODE:
<input type="text" token="Source_Folder_Input">
<label>Source Folder</label>
<change>
<eval token="Source_Folder_Input_Replace">replace($Source_Folder_Input,"\\","\\\\")</eval>
</change>
<default>C:\SHARE</default>
</input>

I want to replace single backslash to doubble.
Now my Dashboard says "Search is waiting for input... ".
If i change for testing change from "TEST" to "SHARE" it works <i´m confused>

Labels (3)
0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...