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
How we can add Javascript in our splunk xmls.
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
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
Do we need to install JavaScript in Splunk server or in splunk forwarder .
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