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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...