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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...