All Apps and Add-ons

Quick State - use local image

season88481
Contributor

Hi any one have experience of this app.

Our Splunk server doesn't have access to Internet. Could we use the image in our local directory?

I tried something like this: (my search table)|eval img="/opt/splunk/etc/apps/test/bin/Floppy-Disk-128.png" | eval state = case(warning_level == "OKAY","DarkOliveGreen", warning_level == "WARNING","FireBrick") | table host img state

It could not display my image.

Any thoughts?

Thanks a lot.

Cheers,
Vincent

0 Karma
1 Solution

rcheeks
Engager

Check out this post - https://answers.splunk.com/answers/287949/what-path-do-i-use-to-add-new-files-images-and-fon.html

The answer applies to Quick State as well. Just make sure any image you want to use exists in:
/opt/splunk/etc/apps/quick_state_app/appserver/static

For example. to use the file preview.png, use this eval statement:
eval img="/static/app/quick_state_app/preview.png"

View solution in original post

rcheeks
Engager

Check out this post - https://answers.splunk.com/answers/287949/what-path-do-i-use-to-add-new-files-images-and-fon.html

The answer applies to Quick State as well. Just make sure any image you want to use exists in:
/opt/splunk/etc/apps/quick_state_app/appserver/static

For example. to use the file preview.png, use this eval statement:
eval img="/static/app/quick_state_app/preview.png"

Lucas_K
Motivator

Your example path would not work because that is a literal file path and not a URL path (the path a browser can use to get the file).

A valid url option might be something like "/en-US/splunkd/__raw/servicesNS/nobody/search/static/appIconAlt.png"

You'd need to find the end point for custom icons contained within an app. Upload your own custom icons to your apps static directory.

Then reference it something similar to /en-US/splunkd/__raw/servicesNS/nobody/myapp/static/appLogo.png

I pulled that from using an inspect in my browser so I'd guess someone might know of the better services endpoint url that you can use instead of servicesNS.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...