Dashboards & Visualizations

Why won't image display in html panel?

IT_Bullgod
Splunk Employee
Splunk Employee

I have a simple piece of html in a panel with the following image tag:

img src="/appserver/static/myfilename.png" /

Browser cannot find/display the image. I'm guessing it needs more qualification to the path, but I've tried several subdirectories down...how far should I specify? Or is something else wrong here?

Labels (1)
Tags (3)
0 Karma

niketn
Legend

Try changing image source as following:

<img src="/static/app/<YourAppName>/myfilename.png"/>

Where YourAppName is the folder where your Splunk app resides in Splunk Home directory.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

shinta_rcm
Explorer

This one worked for me. Thanks a lot

0 Karma

asimagu
Builder
0 Karma
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, ...