Dashboards & Visualizations

Splunk 6.2.5: How to change the background color of a simple xml dashboard?

htkwan
Path Finder

Hello All,

I've tried to change the background color of the dashboard. See below. I've copied the dark.css to the my application, $SPLUNK_HOME/etc/apps/myApp/appserver/static/; and include the line, <dashboard stylesheet="dark.css"> in my dashboard.

1.First Variation
<dashboard stylesheet="dark.css">
...

2.Second Variation
<dashboard stylesheet="dark.css">
...
</dashboard>

3.Third Variation
<dashboard stylesheet="dark.css">
</dashboard>
...

They fail to work. Pls. advise. Thanks.

Picture1

alt text

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

When ever you add an external stylesheet, you must restart splunkweb. You can do this by running:

$SPLUNK_HOME/bin/splunk restart splunkweb

This will pick up the CSS for the dashboard. Also, make sure you only have either dashboard or form as the opening tag. Don't have both.

htkwan
Path Finder

Hello,
Work okay, now. Thanks.

0 Karma

jensonthottian
Contributor

Good to know that 🙂

0 Karma

jensonthottian
Contributor

Can you check if your CSS is operational or not, by converting your dashboard into HTML and directly adding your CSS in the HTML itself. This is a quick check to see if the CSS is good or not. Everything else seems fine to me.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...