Dashboards & Visualizations

embed a graphic on a dashboard, splunk 6.2

some_guy
Path Finder

1) Created a simple dashboard. Want to add a logo. App context=search.
2) Uploaded logo.jpg to $SPLUNKHOME$/etc/apps/search/appserver/static
3) Converted dashboard to html.
4) Added this to html dashboard in an appropriate place in the body:

<img src="../appserver/static/logo.jpg" alt="logo" height="100" width="100"></img>

5) Image will not load. Alt text does show up.

(troubleshooting: bounced splunk, verified graphic isn't corrupt)

How can I get this graphic to show up? is my src path incorrect?

Tags (3)
0 Karma
1 Solution

sanjay_shrestha
Contributor

Can you try:
src="{{SPLUNKWEB_URL_PREFIX}}/static/logo.jpg"

View solution in original post

sanjay_shrestha
Contributor

Can you try:
src="{{SPLUNKWEB_URL_PREFIX}}/static/logo.jpg"

some_guy
Path Finder

Ok, got it. Thanks for the suggestions, which did set me on the right path...

copied the logo image to:
$SPLUNKHOME$/etc/apps/search/static

then referenced it in the html file:

<img src="{{SPLUNKWEB_URL_PREFIX}}/static/app/search/logo.PNG" alt="logo"></img>

pradeepkumarg
Influencer

try this


logo

replace my_app with the name of your app

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 ...