Dashboards & Visualizations

problem with token safe

Federica_92
Communicator

Please, could someone tell me what's wrong in this?

   {% dropdown id="drop-list2" managerid="mysearch"  default=" " labelField="dad" valueField="dad" value="$dad$"|token_safe %}


   new SearchManager_send({
                        id: "mysearch-tree-send",
                        searchname: "mysearch-tree-send",
                        search: mvc.tokenSafe ("host=path | rex \"\,(?<child>.+)\:\" |  search child=$dad$ | table child ")
                });

my variable $dad$ is always empty

Tags (2)
0 Karma

ngatchasandra
Builder

Hi,
Try to look your SearchManager's id. The managerid="mysearch" who is the manager inside your dropdown and must be the SearchManager's id which will populate your dropdown.

0 Karma

dfoster_splunk
Splunk Employee
Splunk Employee

I do not recognize the class SearchManager_send. The regular SearchManager is aware of token-safe strings but I do not know if this custom class is.

0 Karma

Federica_92
Communicator

Yes, sorry, in the end I have solve that I can not use the safe taken in the sub search

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...