Splunk Search

Treemap D3 Library integration

wweiland
Contributor

I have 2 fields (nodeid,jobid in which you could have multiple nodes assigned to 1 jobid) and need to graph it in a format that matches the Treemap. I tried the native treemap module found in the dev tutorial, but it didn't work. I was thinking of trying the D3 library, but I'm unsure how to link it in to Splunk. I was wondering if anyone else has done this?

gmelnik_splunk
Splunk Employee
Splunk Employee

Recently released Splunk Developer Guide covers this topic of integrating custom d3 charts into a Simple XML panel in depth. Specifically, check out Chapter 03 and these two examples: the d3 dendrogram chart and the d3 donut chart.

mkinsley_splunk
Splunk Employee
Splunk Employee

Download and install the Web Framework Toolkit App. It has the examples you're looking for.

0 Karma

mkinsley_splunk
Splunk Employee
Splunk Employee

lol. nvd3 is d3.

These examples show you how to feed Splunk data into the D3 toolkit and visualize it.

If you prefer raw js / html, then you can visit examples here: http://dev.splunk.com/view/SP-CAAAEN6

Finally, if you prefer to develop using the older Module system and Advanced XML , check out the HadoopOps app on apps.splunk.com. The HadoopOpsGauge module uses d3.

0 Karma

wweiland
Contributor

Interesting Toolkit as I have been trying my hand at Django for a few days now. They do have examples for NDV3 toolkit, but not D3. I'm pretty sure someone has done D3 and was hoping they might share some lessons learned. I'm just not sure how to tie the Splunk into the D3 toolkit and then feed it data.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...