Hi all,
I'm tying to use D3 donut chart with splunk real-time search.
I've defined SearchManager this way :
var search1 = new SearchManager({
"id": "search1",
"cancelOnUnload": true,
"latest_time": "rt",
"earliest_time": "rt",
"status_buckets": 0,
"search": "index=_internal |stats count by sourcetype",
"app": utils.getCurrentApp(),
"auto_cancel": 90,
"search_mode": "realtime",
"preview": true,
"runWhenTimeIsUndefined": true
}, {tokens: true});
And chart configuration is :
var donut_chart = new D3ChartView({
"id": "donut",
"managerid": "search1",
"type": "pieChart",
"el": $('#hook1')
}).render();
donut_chart.settings.set("setup", function(chart){
chart.color(d3.scale.category10().range());
chart.donut(true);
});
The problem is that I can't make real-time data to be shown correctly .
Unchecking one of parameters of donut chart suppose to change the chart itselt.
It's happening only for few seconds and atter it the parameter beckame checked again.
In search is not real-time uncheckin/checking working ok.
How can I solve the problem ?
Thanks.
... View more