Dashboards & Visualizations

dashboard text input backslash

zakir_hussain
Explorer

how to change backslash of text input of a dashboard to use in subsequent search?

Labels (1)
0 Karma

zakir_hussain
Explorer

the value of the backslash \ to double backslash \\ in side of token is sets up in dashboard xml.
tried following but did not worked.
<eval token="input_tok">replace($form.input_tok$, "(\\\\)", "\\\\\1") </eval>

Tags (1)

zakir_hussain
Explorer

opps, it did work, my eval was not written correctly, i think, i was missing  space after commas in below syntax.

<eval token="input_tok">replace($form.input_tok$, "(\\\\)", "\\\\\1")
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...