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!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...