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 (2)
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...