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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...