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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...