Dashboards & Visualizations

Integrate Splunk SDK for JavaScript With a Vue.js Project

krunoslav
Engager

Hi everyone,

I recently started a project in JavaScript with Vue.js framework. It's a simple setup with three components and a router. I'm trying to use the Splunk JavaScript SDK with the Vue.js project, but it's not working. It worked from a simple HTML where the JavaScript was directly embedding, but the Vue.js framework doesn't allow me to do to so. I managed to install the SDK in the project as a dependency and it's visible in the node_modules list, but when I try to include it in a component, everything breaks. Can someone share some good practise for using the SDK with Vue.js or a similar framework? Thanks.

0 Karma

niketn
Legend

@krunoslav if your intent is to play around with Vue.js or ReactUI framework, you should be trying your hands on the new dashboard framework (Most of it is Cloud native though). Only Splunk Dashboard Beta is available with Enterprise but does not allow extensions.)

https://www.splunk.com/en_us/blog/tips-and-tricks/reintroducing-splunk-dashboards.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

krunoslav
Engager

@niketnilay Thanks for suggestion, I will look at it, but it's beta and I need something stable. Moreover, I don't think it will help a lot here. So, I'm afraid I still need help with integration of external libraries from Splunk in a Vue project.

0 Karma

niketn
Legend

Like I said for Cloud Native application you can check out Splunk Cloud Services.

Dashboard Beta will anyways not support extensions!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

krunoslav
Engager

Thanks, but at the moment data has to stay at the client's premises.

0 Karma
Get Updates on the Splunk Community!

Unleash the Power of Splunk MCP and AI, Meet Us at .Conf 2025, and Find Even More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Professionals: Build Resilience and Visibility with These .conf25 ...

  If you're focused on performance, availability, and full-stack visibility, the Observability track at ...

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...