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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...