Dashboards & Visualizations

Splunk Cloud - Adding an external img in a dashboard

zanoefel
New Member

Hi community
I know that it works perfectly on ON PREM env. but for Cloud has being a challenge to find a sustainable solution
We are looking for a way to project images on dashboards built in a Splunk Cloud env
Did anyone have this challenge? How it was?

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @zanoefel,
you can add an object to an app (also in cloud) in [Apps -- Manage Apps -- Choose App -- Edit properties -- Upload Asset].
It's located in appserver/static folder of your App and you can call it in your dashboard in an html panel at the address:

<img src="/static/app/your_app/your_image.png" style="height:50px;border:0;"/>

Ciao.
Giuseppe

0 Karma

Splunkerninja
Path Finder

@gcusello I do not see an option for upload asset in Splunk Cloud in 9.x version. How to upload image in cloud through UI?Or if not how to refer an external image using href. My image isnt loading though the href sharepoint URL works properly

It is just below 2 options

Splunkerninja_0-1700504321860.png

Sorry for digging up old post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Splunkerninja ,

in Splunk Cloud, you don't upload images but you use external on line images.

You have to follow the above procedure to avoid to approve each time the access to an external content.

Ciao.

Giuseppe

Splunkerninja
Path Finder

Hi @gcusello I have added below code but the image is not loading. I have given dummy link below, but my actual private link is working fine

<html>
<centre>
<img style="padding-top:60px" height="92" href="https://sharepoint.com/:i:/r/sites/Shared%20Documents/Pictures/Untitled%20picture.png?csf=1&amp;web=..." width="272" alt="Terraform "></img>
</centre>

</html>

Splunkerninja_0-1700560292403.png

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Splunkerninja ,

launching the url from your browser, does it reach the image or not?

Ciao.

Giuseppe

0 Karma

Splunkerninja
Path Finder

@gcusello Yes, It is reaching

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Splunkerninja ,

check if the url is effectively referred to an image and if it has a compatible format for an image (png or jpg) or if you're using a too large size.

In this last case, please try a smaller size.

Ciao.

Giuseppe

0 Karma

Splunkerninja
Path Finder

@gcusello Yes the URL is referring to the image and it is of 76kb in png format.Still facing the issue

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Splunkerninja ,

did y0u tried with a smaller size?

Ciao.

Giuseppe

0 Karma

Splunkerninja
Path Finder

@gcusello Yes, I did reduce upto 20 kb but still the image is not loading.

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...