Dashboards & Visualizations

Is that possible to create popup modal window in splunk

aditsss
Motivator

Hi Everyone,

Is that possible to create a popup modal  window in Splunk without using Javacript?

Thanks in advance

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

you have to copy your js files in $SPLUNK_HOME/apps/your_app/appserver/static of your Search Head.

Sorry if I'm repeating: see Splunk Dashboard Examples App!

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

sorry no, it isn't possible without JS.

Ciao.

Giuseppe

0 Karma

aditsss
Motivator

@gcusello 

How we can add Javascript in our splunk xmls.

0 Karma

aasabatini
Motivator

Hi @aditsss ,@gcusello ,

 

if can help, please follow this really clear documentation

https://www.splunk.com/en_us/blog/tips-and-tricks/using-bootstrap-modal-with-splunk-simple-xml.html

Regards

Alessandro

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

you have to add to the first row of the dashboard the indication of the js e.g.:

<form script="table_icons_rangemap.js" stylesheet="table_decorations.css">

you can find documentation at 

https://www.youtube.com/watch?v=lojUc9v37Jg

https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usewebframework/modifydashboards/

Then see the Splunk Dashboard Examples App (https://splunkbase.splunk.com/app/1603/) where you can find many examples of JS using.

Ciao.

Giuseppe

0 Karma

aditsss
Motivator

@gcusello 

Do we need to install JavaScript  in Splunk  server or in splunk forwarder .

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss,

you have to copy your js files in $SPLUNK_HOME/apps/your_app/appserver/static of your Search Head.

Sorry if I'm repeating: see Splunk Dashboard Examples App!

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...