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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...