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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Data Outage Monitoring and Reporting

We’ve all been there, right? Living our best life, working on our Splunk environment, when out of nowhere a ...

Manage Datasets and Connections in Catalog on Splunk Cloud Platform

Set Up Data Where You Use It Catalog already helps teams find and understand data across Splunk indexes, ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...