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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...