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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...