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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...