Splunk Dev

How would you package your Splunk App that uses dashboard studio without losing any pictures or icons?

Marco_Develops
Path Finder

Hello Splunkers,

I have a question with building Splunk Apps with Dashboard Studio. My question has to do with portability of the Splunk app.

Given that the traditional way of building Splunk apps via Simple XML allows you to save images in the Static folder inside your Splunk app.  So whenever you download the App on Splunkbase you have everything you need.

Unlike Dashboard Studio that saves your images & Icons in the KV store. 

With this in mind, how would you package your Splunk App that uses dashboard studio without losing any pictures or icons? 


Thank you,

Marco

Labels (3)
Tags (3)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

Yes, that is currently the issue with the dashboard studio that kvstore images won't bundle with App.

But you can use the old solution, add images under appserver/static and use the relative reference, it still works with Dashboard Studio. (You can do that at the end as well by just updating the JSON file of your dashboard, "src" attribute I think)

 

View solution in original post

VatsalJagani
SplunkTrust
SplunkTrust

Yes, that is currently the issue with the dashboard studio that kvstore images won't bundle with App.

But you can use the old solution, add images under appserver/static and use the relative reference, it still works with Dashboard Studio. (You can do that at the end as well by just updating the JSON file of your dashboard, "src" attribute I think)

 

joshiro
Communicator

Did you ever tried referencing icons from static directory? Seems that only works for images.
Any idea on how to accomplish the same but for icons?

0 Karma

Marco_Develops
Path Finder

Yes, that is my dilemma. I'll just package the app with pictures pointing to the appserver/static/images and test if the images stick.

 

I appreciate the feedback.

-Marco

0 Karma

sloshburch
Splunk Employee
Splunk Employee

Hi @Marco_Develops - if the prior answer was good, then go ahead and hit the "Accept as Solution" button so other folks know this thread has a solution with it. Thanks!

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...