Dashboards & Visualizations

How do I render an image on a local network path on a Splunk dashboard?

chustar
Path Finder

I have a Splunk server that's running on an internal intranet and I would like to display an image in a block on a dashboard.
When I refer to the image, Splunk automatically converts my \ into %5C.

e.g. \\hostname\server\image.png gets turned into %5C%5Chostname%5Cserver%5Cimage.png.

How can I get splunk to just embed the image?

MuS
Legend

Hi chustar,

You can put your image in the etc/apps/YourAppName/appserver/static folder and use it in the dashboard:

  <row>
    <panel>
      <html>
      <p>
        <img src="/static/app/YourAppName/image.png" align="left" height="75" width="75"/>
      </p>
     </html>
    </panel>
  </row>

Hope this helps ...

cheers, MuS

0 Karma

chustar
Path Finder

Thanks for the suggestion, but the images are hosted on our internal network, and the link is generated based on data in our splunk dashboard. So the path in the dashboard looks like: \\hostname\$var1$\$var2$\image.png.

0 Karma

MuS
Legend

I assume this could be done with some css and/or js hacks, but not out of the box as far as I know - sorry.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...