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 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...