All Apps and Add-ons

Why is Dendrogram Viz "Manage tokens on this dashboard" drilldown not working?

youngstrommj
Explorer

Hello @chrisyounger, Love your components. 

I'm trying to use the Dendrogram drilldown to "Manage tokens on this dashboard" but it doesn't seem to work. Looking in the browser console I can see the tokens being set but my form values don't get set. Any ideas?

 

 

      <viz type="dendrogram_viz.dendrogram_viz">
        <title>title</title>
        <search>
          <query>~Query Here~</query>
          <earliest>0</earliest>
          <latest></latest>
        </search>
        <option name="dendrogram_viz.dendrogram_viz.color1">#171d21</option>
        <option name="dendrogram_viz.dendrogram_viz.color2">#ffffff</option>
        <option name="dendrogram_viz.dendrogram_viz.delimiter">-&gt;</option>
        <option name="dendrogram_viz.dendrogram_viz.html">no</option>
        <option name="dendrogram_viz.dendrogram_viz.label_size">100</option>
        <option name="dendrogram_viz.dendrogram_viz.layout">vertical</option>
        <option name="dendrogram_viz.dendrogram_viz.linkcolor">#555555</option>
        <option name="dendrogram_viz.dendrogram_viz.max_rows">1000</option>
        <option name="dendrogram_viz.dendrogram_viz.node_ancestor_spacing">400</option>
        <option name="dendrogram_viz.dendrogram_viz.node_sibling_spacing">400</option>
        <option name="dendrogram_viz.dendrogram_viz.node_size">80</option>
        <option name="dendrogram_viz.dendrogram_viz.nodecolor">#999999</option>
        <option name="dendrogram_viz.dendrogram_viz.radius">500</option>
        <option name="dendrogram_viz.dendrogram_viz.tidy">yes</option>
        <option name="dendrogram_viz.dendrogram_viz.zoom">yes</option>
        <option name="drilldown">all</option>
        <option name="height">1000</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <set token="form.parentageSpan">$dendrogram_viz_id$</set>
        </drilldown>
      </viz>

 

 

 

Labels (1)
Tags (2)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

@youngstrommj - Two points:

  • Please do not use form.<token_name>, use just <token_name> directly.
  • Also, main thing, $dendrogram_viz_id$ which is not available as drilldown token for the viz as per the doc. - https://splunkbase.splunk.com/app/5153/#/details
    • $dendrogram_viz_path$, $dendrogram_viz_name$, $dendrogram_viz_name$
    • $dendrogram_viz_drilldown$

 

I hope this helps!!!

View solution in original post

VatsalJagani
SplunkTrust
SplunkTrust

@youngstrommj - Two points:

  • Please do not use form.<token_name>, use just <token_name> directly.
  • Also, main thing, $dendrogram_viz_id$ which is not available as drilldown token for the viz as per the doc. - https://splunkbase.splunk.com/app/5153/#/details
    • $dendrogram_viz_path$, $dendrogram_viz_name$, $dendrogram_viz_name$
    • $dendrogram_viz_drilldown$

 

I hope this helps!!!

youngstrommj
Explorer

Thanks for the help @VatsalJagani and the clarification @chrisyounger. I'm a bit of a beginner, but, I was able to get my use case to work using the visualization tokens directly.

chrisyounger
SplunkTrust
SplunkTrust

Glad to hear it! 

Its a shame that the Splunk API for visualizations is a bit unclear and broken becuase I have always wanted to do what you are trying before,. 

 

0 Karma

youngstrommj
Explorer

Thank you for your help @Anonymous. However, it still doesn't work after applying both of your suggestions. I did confirm, looking at the browser console, that the "$dendrogram_viz_drilldown$" token is getting set.

Also, "parentageSpan" is another input in my dashboard that I was hoping to change with the drilldown. Using the "form." syntax works in other places in my dashboard so I thought it would work here too. Either way, removing "form." doesn't seem to help. 😞

In case it is useful my splunk version is 7.3.6

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

I would try using the $dendrogram_viz_drilldown$ token directly in other places of the dashboard rather than using <drilldown>.

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

VatsalJagani is 100% correct. Unfortunately its not possible to change a form.XXX token from the vis. It can be done using complicated javascript, but this is a real pain. 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...