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!

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...

Major Splunk Upgrade – Prepare your Environment for Splunk 10 Now!

Attention App Developers: Test Your Apps with the Splunk 10.0 Beta and Ensure Compatibility Before the ...

Stay Connected: Your Guide to June Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...