Dashboards & Visualizations

Is it possible to access Splunk SDK in an application dashboard via javascript?

yucheng4
New Member

It seems that a Splunk application runs on port 8000 and the SDK runs on port 6969.
While keeping the dashboard in the Splunk web server, can I access the SDK from the dashboard at the same time?

0 Karma

paramagurukarth
Builder

Off course you can

require([
    "splunkjs/mvc",
    "splunkjs/mvc/simplexml/ready!"
], function(mvc) {
  var splunk_service = mvc.createService();
  ... 

});

splunk_service is your SDK's service instance

0 Karma
Get Updates on the Splunk Community!

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...

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

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...