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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...