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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...