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!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...