Splunk Dev

Dendrogram chart not showing results

SathyaNarayanan
Path Finder

Hi,

Error "No search set "

My Modified XML, -
I created the Test Dahsboard in the same Custom Viz app but still its not taking the dendrogram,js and dendrogram.css.

Help me wat i missed in it.

<form script="custom_vizs:autodiscover.js">
  <label>Dendrogram test</label>
  <fieldset submitButton="false" autoRun="true">
    <input type="time" searchWhenChanged="true">
      <default>
        <earliest>-24h@h</earliest>
        <latest>now</latest>
      </default>
    </input>
  </fieldset>
  <row>
    <panel>
      <html>
        <div id="dendrogram_search" class="splunk-manager" data-require="splunkjs/mvc/searchmanager" data-options="{           
        &quot;search&quot;: {             
        &quot;type&quot;: &quot;token_safe&quot;,             
        &quot;value&quot;: &quot;| tstats count where index=main AND source=&quot;ops_master.csv&quot; by &quot;Type Of Service&quot; , &quot;Service Name&quot; ,&quot;Service Name Sub Category &quot;           }, 
        &quot;preview&quot;: true,
        &quot;earliest_time&quot;: { 
        &quot;type&quot;: &quot;token_safe&quot;,
        &quot;value&quot;: &quot;$$earliest$$&quot;
        },           
        &quot;latest_time&quot;: { 
        &quot;type&quot;: &quot;token_safe&quot;,
        &quot;value&quot;: &quot;$$latest$$&quot; 
        }    
        }">
        </div>
        <div id="dendrogram" class="splunk-view" data-require="app/custom_vizs/components/dendrogram/dendrogram" data-options="{ 
        &quot;managerid&quot;: &quot;dendrogram_search&quot;, 
        &quot;root_label&quot;: &quot;Type Of Service&quot;, 
        &quot;margin_left&quot;: 200,  
        &quot;margin_right&quot;: 0  
        }">
        </div>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <title>Dendrogram Search Results</title>
        <search base="dendrogram_search"></search>
      </table>
    </panel>
  </row>
</form>

Thanks,

Tags (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@SathyaNarayanan
Checked.

Can you please try escaping quotes in search?

OLD

 "value": "| tstats count where index=main AND source="ops_master.csv" by "Type Of Service" , "Service Name" ,"Service Name Sub Category""

New

 "value": "| tstats count where index=main AND source=\"ops_master.csv\" by \"Type Of Service\" , \"Service Name\" ,\"Service Name Sub Category\""

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@SathyaNarayanan
Checked.

Can you please try escaping quotes in search?

OLD

 "value": "| tstats count where index=main AND source="ops_master.csv" by "Type Of Service" , "Service Name" ,"Service Name Sub Category""

New

 "value": "| tstats count where index=main AND source=\"ops_master.csv\" by \"Type Of Service\" , \"Service Name\" ,\"Service Name Sub Category\""

SathyaNarayanan
Path Finder

Thank you, it is working

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@SathyaNarayanan

Great.. Can you please up vote and accept this answer to help community?

Happy Splunking

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@SathyaNarayanan

Can you please remove HTML encoding( &quot;) and try?

else open dashboard edit xml and copy code.

https://SPLUNK_SERVER:8000/en-GB/app/custom_vizs/viz_dendrogram/editxml

0 Karma

SathyaNarayanan
Path Finder

Hi,

I tried but no use.

<html>
        <div id="dendrogram_search" class="splunk-manager" data-require="splunkjs/mvc/searchmanager" data-options='{
          "search": {
            "type": "token_safe",
            "value": "| tstats count where index=main AND source="ops_master.csv" by "Type Of Service" , "Service Name" ,"Service Name Sub Category""
          },
          "preview": true,
          "earliest_time": {
            "type": "token_safe",
            "value": "$$earliest$$"
          },
          "latest_time": {
            "type": "token_safe",
            "value": "$$latest$$"
          }
        }'>
        </div>
        <div id="dendrogram" class="splunk-view" data-require="app/custom_vizs/components/dendrogram/dendrogram" data-options='{
          "managerid": "dendrogram_search",
          "root_label": "Index",
          "margin_left": 200,
          "margin_right": 0
        }'>
        </div>
      </html>
0 Karma

SathyaNarayanan
Path Finder

Its not pulling the js and css

0 Karma
Get Updates on the Splunk Community!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...