Dashboards & Visualizations

Is there a way to include external javascript in a simple XML dashboard?

prashantjois
Explorer

Is there a way to include an external script in a simple XML dashboard?

rcorbisier_splu
Splunk Employee
Splunk Employee

The Splunk Developer’s Guide and the accompanying Splunk Reference App might be helpful in answering your question. A print version is available from Amazon.com.
alt text

It was designed by a Splunk dev team to help you learn how to build, test, and deploy apps. The reference app (named PAS) showcases proven practices using the Splunk Developer Platform and includes code that you can download, reuse and even contribute to, code walkthroughs as well as the associated unit and acceptance tests.

The featured example demonstrates how to monitor various document repositories (current and future). Managers and auditors can use the app to see who has viewed, modified, deleted, or downloaded documents or other artifacts from various sources, detect suspicious behaviors, and analyze trends.

Currently an updated version is under development that will expand the functionality,, so even if it’s not relevant now you might want to keep checking to see what’s been added.

melting
Splunk Employee
Splunk Employee

Yes you can include javascript in your simple xml dashboards and forms.

  1. All dashboards in an app will load dashboard.js from $SPLUNK_HOME/etc/apps//appserver/static/dashboard.js
  2. Also you can load other js files (csv) from your app ... will load $SPLUNK_HOME/etc/apps//appserver/static/myJs.js and $SPLUNK_HOME/etc/apps/otherapp/appserver/static/otherJs.js

kml_uvce
Builder

i think in simple xml no but in advanced xml you can do this.
http://dev.splunk.com/view/webframework-splunkjsstack/SP-CAAAESV

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...