I am having an external Script stored in the static folder in the at the following path:
/Splunk_Home/etc/apps/app_name/appserver/static/myscript.js
I want to include that script in HTML dashboards. How do I do this? I mean, what will be the relative path to include it in the script src
<script type="text/javascript" src="/path/to/myscript.js"></script>
What is the path? I tried giving the actual path, but it didn't work out for me.
Any help !!!
Found the way
<script type="text/javascript" src="{{SPLUNKWEB_URL_PREFIX}}/static/app/app_name/myscript.js"></script>
Found the way
<script type="text/javascript" src="{{SPLUNKWEB_URL_PREFIX}}/static/app/app_name/myscript.js"></script>