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
SplunkTrust
SplunkTrust

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)
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...