Hi below is the code snippet.
XML
<search id="tagcloud_search1">
<query>index=_internal source=sourcetype = a NOT (is OR you OR the OR chinese)' title="*" | eval words=split(title," ") | stats count words""}</query>
</search>
<row>
<panel>
<html>
<h2>Pipeline</h2>
<div id="tagcloud1"
class="splunk-view"
data-require="app/social/components/tagcloud/tagcloud"
data-options='{
"minFontSize": 14,
"maxFontSize": 55,
"managerid": "tagcloud_search1",
"valueField": "count",
"labelField": "words"
}'>
</div>
</html>
</panel>
*autodiscovery.js*
require.config({
paths: {
"app": "../app"
}
});
require(['splunkjs/mvc/simplexml/ready!'], function(){
require(['splunkjs/ready!'], function(){
// The splunkjs/ready loader script will automatically instantiate all elements
// declared in the dashboard's HTML.
});
});
... View more