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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...