Dashboards & Visualizations

Custom module's css images not working in 4.2

Paolo_Prigione
Builder

In Splunk 4.2, custom modules' css background images are not loaded correctly. Here's an example from the Google Maps app. Module "GoogleMaps" contains this css line.

.cluster-icon.m-1 {
background: url("img/m1.png") no-repeat scroll 0 0 transparent;
.......
}

On Splunk 4.2 the marker image is not displayed. On Splnuk 4.1.7 it works perfectly. Firefox' firebug is not able to display the images, either, while the css loads fine in both cases.

Do you have any idea?

1 Solution

Paolo_Prigione
Builder

It seems like Splunk 4.2 custom module css' urls are relative to the

"appserver/modules/" 

directory rather than the

"appserver/modules/MODULENAME/" 

directory (as it was on 4.1). So in the previous example, adding the module name to the url solves the problem:

.cluster-icon.m-1 {
    background: url(GoogleMaps/img/m1.png) no-repeat scroll 0 0 transparent;
    .......
}

.

View solution in original post

tukmol
New Member

Hi all!! I have a problem with changing the color button of flashtimeline beside the search button. i want change it in blue while the default color of that is green. Thank you guys

0 Karma

motomjp
New Member

On Splunk 4.2.1...

->
url(/modules/GoogleMaps/img/m1.png)

0 Karma

Paolo_Prigione
Builder

It seems like Splunk 4.2 custom module css' urls are relative to the

"appserver/modules/" 

directory rather than the

"appserver/modules/MODULENAME/" 

directory (as it was on 4.1). So in the previous example, adding the module name to the url solves the problem:

.cluster-icon.m-1 {
    background: url(GoogleMaps/img/m1.png) no-repeat scroll 0 0 transparent;
    .......
}

.

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...