Getting Data In

API call to return graph (visualization)

iamgame
New Member

Can someone help and point me to some documentation on how to use the REST API to run a search and stream graph (visualization) results back? Please note I am looking for graph (eg. time series etc.) output stream.

Thanks a lot.

Tags (2)
0 Karma

niketn
Legend

@iamgame, your request is not quite clear. Are you looking for reference to newly introduced Splunk Developer Cloud which is current in Beta?

https://conf.splunk.com/conf-online.html?search=1703#/

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

iamgame
New Member

Sorry for not being that clear.

I have a nodejs app that calls the Splunk API to do a search query. Example:

splunkService[splunkEnv].oneshotSearch('search index=test SERVICE="myservice" | timechart avg(RESPONSETIME) by SERVICE', searchParams, (err, results) => {
// code here.
});

The output from splunk is JSON data. Wanted to know if there is a way to get chart itself as an output.
In the current case, I have to use the JSON data and chartjs to build the chart myself.

Thanks a lot.

0 Karma

niketn
Legend

@iamgame then that is definitely the current use case and way to go. If you want Splunk Visualizations as well in your external apps, you should request for Splunk Developer Cloud Beta program which was announced in Splunk .Conf this year or reach out to your Splunk Sales contact. Check out the Splunk Developer Cloud sessions at .Conf in the link provided in my previous comment to see if it fits your needs.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

iamgame
New Member

Ok. Thank you @niketnilay

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Fuel Your Journey: What’s Waiting for You at the .conf26 Acceleration Station

Navigating the show floor at .conf26 isn't just about keynotes and technical breakout sessions; it's also ...

Join the Final Session of the Data Management & Federation Bootcamp Series

Over the past three sessions of the Data Management & Federation Bootcamp Series, we've explored how to build ...

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...