Splunk Dev

Custom css for app

AleCanzo
Explorer

Hi guys,
I'm trying to customize an app I created. For the dashboards, I placed the CSS file in appserver/static and linked it in the dashboard using stylesheet="my.css".
How does it work for the app's CSS? Where should I put the CSS file? Do I also need to reference it in any .conf file?
Thanks for your attention.

 

Labels (1)
0 Karma

antoniolamonica
Explorer

I have a modified version of the mitre matrx TA, but if understand it corerctly it uses a few things:

Javascript file (.js)
Stylesheet file (.css)
and the Source on a Dashboard.

At the top of your sourceof your Dashbaord write the following: 

<form script="jsFileName.js" stylesheet="cssFileName.css" version"1.1" theme="light">

antoniolamonica_0-1751979258111.png


Now I have to call portions of my .js file in for a table to work accordingly but that may differ from your dashboard.

Here I have to call the components of 'mitrematrix' into my table from the .js

.js

antoniolamonica_1-1751979319062.png
dashboard source:

antoniolamonica_2-1751979380832.png


Something to keep in mind.

---
If this reply helps you, Karma would be appreciated.

Tags (2)
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 ...