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="{
"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": "Type Of Service",
"margin_left": 200,
"margin_right": 0
}">
</div>
</html>
</panel>
</row>
<row>
<panel>
<table>
<title>Dendrogram Search Results</title>
<search base="dendrogram_search"></search>
</table>
</panel>
</row>
</form>
Thanks,
@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
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\""
Thank you, it is working
@SathyaNarayanan
Great.. Can you please up vote and accept this answer to help community?
Happy Splunking
@SathyaNarayanan
Can you please remove HTML encoding( "
) and try?
else open dashboard edit xml and copy code.
https://SPLUNK_SERVER:8000/en-GB/app/custom_vizs/viz_dendrogram/editxml
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>
Its not pulling the js and css