Dashboards & Visualizations

How do I make the dashboard understand that it doesn't need an input for ID3?

thomasananthan
New Member

Hi all,

I am trying to pass a text box input in a dashboard called token ID1 which works fine but the issue here is that I am using the $ sign again to do a 2nd search from a field extract ID3 from index idx1 with a map search on index idx2 with the field that was extracted ID3.

The issue here I think is that the dashboard is expecting an input for ID3 because I am using the $ sign. As this search works fine when done in splunk search by manually passing ID1. How do I make the dashboard understand that it doesn't need an input for ID3?

index=idx1 $ID1$ | rex field=_raw "(?.*?)<.*?someString"(?.*?)">(?.*?)somemorestring" | dedup ID3 | map search="search (\"string1 with spaces\" OR string2 OR string3 OR \"string 4 with spaces\" OR \"string 5 with spaces\" OR \"string6\") index=idx2 $ID3$"
Hope this makes sense,

Thanks for your help.
Tom

0 Karma
1 Solution

elliotproebstel
Champion

Have you tried wrapping ID3 with double dollar signs like this: $$ID3$$? According to the docs, that is needed if you are referencing a variable within a map command on a form.
http://docs.splunk.com/Documentation/Splunk/7.1.0/Viz/tokens

View solution in original post

0 Karma

thomasananthan
New Member

Thanks a lot Elliot! worked like a charm 🙂

0 Karma

elliotproebstel
Champion

Glad to help! 🙂

0 Karma

elliotproebstel
Champion

Have you tried wrapping ID3 with double dollar signs like this: $$ID3$$? According to the docs, that is needed if you are referencing a variable within a map command on a form.
http://docs.splunk.com/Documentation/Splunk/7.1.0/Viz/tokens

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...