Dashboards & Visualizations

Add image to dashboard uploaded on the server

pinzer
Path Finder

Hi all, i need to put an image on the dashboard and i want to upload it on the server. In which folder i have to upload it and what path i have to use? thanks a lot

Tags (2)
1 Solution

Paolo_Prigione
Builder

Hi, you can load the image in the appserver/static subfolder of your app's directory:

$SPLUNK_HOME/etc/apps/<yourappname>/appserver/static/

Then, in your static html, build the img tag like this:

<img src="${make_url('/static/app/<yourappname>/<imagename>')}" alt="My custom image" />

Hope that helps, Paolo

View solution in original post

Paolo_Prigione
Builder

Hi, you can load the image in the appserver/static subfolder of your app's directory:

$SPLUNK_HOME/etc/apps/<yourappname>/appserver/static/

Then, in your static html, build the img tag like this:

<img src="${make_url('/static/app/<yourappname>/<imagename>')}" alt="My custom image" />

Hope that helps, Paolo

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...