Splunk Dev

D3 graphs using splunk sdk for javascript for outside app

ektasiwani
Communicator

Hi

I am creating an app outside splunk web.
I am using splunk sdk for javascript to get datafrom splunk.
I want to create third party graph(d3 graph) using that data. Is there any document or example showing same.

Thanks

0 Karma
1 Solution

shaskell_splunk
Splunk Employee
Splunk Employee

I'd have a look at the docs.

Connecting To Splunk
Running Searches

Pay special attention if you have searches with greater than 50k results. You will need to paginate through the data.

There's nothing special when it comes to creating a D3 visualization with data coming from Splunk. The key is to write the query so it returns the data in the shape that the D3 visualization expects. You'll probably want to set the output_mode of the search to JSON_ROWS as most D3 visualizations expect JSON as input. The rest of your javascript code will be D3 specific once you've got your search results.

View solution in original post

0 Karma

shaskell_splunk
Splunk Employee
Splunk Employee

I'd have a look at the docs.

Connecting To Splunk
Running Searches

Pay special attention if you have searches with greater than 50k results. You will need to paginate through the data.

There's nothing special when it comes to creating a D3 visualization with data coming from Splunk. The key is to write the query so it returns the data in the shape that the D3 visualization expects. You'll probably want to set the output_mode of the search to JSON_ROWS as most D3 visualizations expect JSON as input. The rest of your javascript code will be D3 specific once you've got your search results.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...