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

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...