Getting Data In

What path do I use to add new files, images, and fonts to load on a dashboard?

rakesh_498115
Motivator

Hi ,

I have custom fonts for my dashboard and added the same in my app in the below path.

/opt/splunk/etc/apps/MY_APP/static/fonts/BTFont_Rg.ttf

but when I run the dashboard, it is not able to load the fonts and throwing a 404 errror when looked in Firebug. Can u please suggest the appropriate path to put the fonts folder?

//error i am seeing in Firebug

NetworkError: 404 Not Found - http://localhost:8080/en-GB/static/@255606/app/fonts/BTFont_Rg.ttf
Tags (3)

bmacias84
Champion

I struggled with the same thing last month.

Here is how it works.

/static/app/<your_app>/font/BTFont_Rg.tff

You can find all static items for an app under this path.

/static/app/<your_app>

For an image tag it would like like this <img src="/static/app/simple_xml_examples/images/sum_search1.png"></img>

rakesh_498115
Motivator

hi bmacias84,

can u specify where we will have this static folder ..
i mean can u give the path from the base splunk installation location.

Thanks,
Rakesh.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...