Dashboards & Visualizations

Hosting external libraries in splunk and instantiating them in an HTML dashboard

mikdman
Engager

Is it possible to host and use 3rd party javascript libraries for HTML dashboards and what is the best practice for doing this?
more specifically, in my case I'm attempting to use Vue JS for a simple "Hello World" in an HTML dashboard.
Instantiating the Vue component as follows

var app = new Vue({ 
    el: '#app',
    data: {
        message: 'Hello World!'
    }
});

and then calling on it in HTML

<script src="vue.js"></script>
<div id="app">
    {{ message }}
</div>

neither calling for the JS script explicitly via an external file in .../static or referencing it in require seem to work.

Does anyone know of a good method/best practice to host/run VueJS in splunk for HTML dashboards?

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...