Splunk Search

application.css is getting ignored by splunk

vikas_gopal
Builder

Hi Experts,

I want to add my custom style to my app. I have done some modifications in application.css in ($SPLUNK_HOME/etc/apps//appserver/static/) folder and I restart the web service then refresh browser but it did not reflect the changes to the app.
here is my nav code

Application.css code

/*
 * Top app banner section
 */
.AccountBar {
    background-image: url(/static/app/samples/samples_header.png);
    background-repeat: no-repeat;
    background-color: #79a60b;
    height: 140px;
}

.AccountBar .appLogo,
.AccountBar p.appName {
    display: none;
}

.AccountBar .accountBarItems {
    background-color: #000;
    opacity: .5;
    filter: alpha(opacity=50);
}

/*
 * view menu system
 */
.AppBar {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 18px;
    font-variant: small-caps;
}

.AppBar a {
    color: #f3df00 !important;
}

.AppBar a:hover {
    color: #6ad7ff !important;
}

/*
 * Body content
 */
body {
    background-image: url(/static/app/samples/body_bg.png);
    background-repeat: repeat-x repeat-y;
}

Please suggest what else do I need to consider

Tags (1)
0 Karma

stephanefotso
Motivator

Clear Splunk Web related cache after customization
If you've made changes to an app's static content while customizing Splunk Web, you can reload that content for all the users of your app using this URI: http://localhost:8000/_bump
The _bump endpoint clears out the Splunk Web related cached items in client browsers, allowing new static content to load.

SGF
0 Karma

vikas_gopal
Builder

I missed my nav code

<nav search_view="search" color="#65A637" stylesheet="application.css">
  <view name="dashboards" default='true' />
</nav>

I actually want to hide account bar

0 Karma
Get Updates on the Splunk Community!

Changes to Splunk Instructor-Led Training Completion Criteria

We’re excited to share an update to our instructor-led training program that enhances the learning experience ...

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

❄️ Welcome the new year with our January lineup of Community Office Hours, Tech Talks, and Webinars! &#x1f389; ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...