AppD Archive

Using images in custom dashboard

CommunityUser
Splunk Employee
Splunk Employee

Hi all,

we are trying to add up a custom image into the custom dashboard. However we dont have any URL; instead we want to upload it to the dashboard. Is there anything planned like this?

Best,

Daniel

0 Karma

Jean-Baptiste_M
Builder
You don't have to upload your image but you can convert your image into
base64 encoded string and paste the string in the URL:
https://en.wikipedia.org/wiki/Base64

This is the web site I use to do so:
https://www.base64-image.de/

Or when you search for an image in Google Images, right click on an image
and copy gives you the base64 encoded string.

If you don't like that at all, you can host your images inside the
controller (OnPrem only obviously) by copying the file here:

/opt/AppDynamics/Controller/appserver/glassfish/domains/domain1/applications/controller/controller-web_war

Then the file is available http://yourcontroller:8090/yourimage.jpg



Hope it's clear :winking_face:
JB
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hey jb,

thank you for your response. This solution is not working for us. :disappointed_face:

Our customers have highly regulated environments so its not easy to bring a file to the server. A upload mechanism would be nice.

Is something like this in planning?

0 Karma

Jean-Baptiste_M
Builder
Dross,
Why do you say this solution (base64) doesn't work for you?

There's nothing planned in a short term and since we provide 2 other
solutions, I don't think this is going to happen.

JB
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hey jb,

but in this case I would still refer to an external webserver - correct?

Best,

Daniel

0 Karma

Jean-Baptiste_M
Builder
No the base64 technics converts a file to a long string that is NOT a http
link..
Try it :winking_face:

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hey jb,

thanks that what I need. Now I have a base64 string: How can i place it into my dashboard?

0 Karma

Jean-Baptiste_M
Builder
Add a Image widget but instead of the URL you copy your base64 string into
the URL field, that's it
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

For test purposes I used the wikipedia image. As I am not allowed to upload files I used this tool instead:

http://www.askapache.com/online-tools/base64-image-converter/

As a Input I used https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg

But using the base64 string under "RAW" I dont get a image out.

Best,

Daniel

0 Karma

Jean-Baptiste_M
Builder
Just look like a problem with the picture you chose!

Try with this:
https://en.wikipedia.org/static/images/project-logos/enwiki.png
I just did
JB
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Very nice! :slightly_smiling_face: Its working.

Thank you so much!

0 Karma

Jean-Baptiste_M
Builder
Great!! Enjoy
0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...