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!

Harnessing Splunk’s Federated Search for Amazon S3

Managing your data effectively often means balancing performance, costs, and compliance. Splunk’s Federated ...

Infographic provides the TL;DR for the 2024 Splunk Career Impact Report

We’ve been buzzing with excitement about the recent validation of Splunk Education! The 2024 Splunk Career ...

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...