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

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

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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...