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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...