Dashboards & Visualizations

Change to div's id in xml not reflected when inspected in the browser

beataficek
Explorer

Hi, as in the title, the old panel id persists and the styling isn't applied. Refreshing the browser, clearing cache, restarting splunk idoesn't help. What am I missing? I'm on 9.4.9

Labels (2)
0 Karma

beataficek
Explorer

In some very strange turn of events, the id is today updating as normal. 

Here's the xml snippet:

<!-- TOKEN ENTERED -->
<row>
 <panel id="header_results">
  <html>
    <h2>Results for: $token_entered$</h2>
  </html>
 </panel>
</row>

Here's the Inspector:

beataficek_0-1776077541130.png

On Friday after I changed the id="header_main" the inspector kept showing id="header_results", but it works today.. beats me.

Thank you for all your input. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Good that it is all working for you again. It sounds like you were doing the right thing all along and that there was something about your environment at the time which was causing this (intermittent) issue. If it happens again, please provide more detail about your environment (obfuscated, of course), in case there is something that someone could suggest needs tweaking.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

As others have said, give us an example of what your XML is looking like and how/where you are setting the id, what your CSS looks like and precisely what your goal is.

CSS styling needs to be set precisely so the problem is most likely how you have defined your CSS.

 

0 Karma

tscroggins
Champion

Hi @beataficek,

After logging into your search head or search head cluster, browse to https://splunk/en_US/_bump, where "splunk" is your hostname and "en_US" is your locale, and then click the Bump version button.

If this doesn't work and you're using a search head cluster with round-robin DNS or a load balancer, replication may be broken, and you may be seeing an older version of your dashboard intermittently.

beataficek
Explorer

I'll give this a shot if the issue comes up again

0 Karma

kknairr
Contributor

@beataficek Did you try using Dashboard studio which will make things easier for you?

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Yes @ITWhisperer thats right DS doesnt support custom CSS so its unlikely to be able to resolve the problem here I think @kknairr unless there happens to be a the style changes being applied happen to exist in the DS options already, although these are largely the same as in Simple XML now.

@beataficek Please could you confirm what the changes are you are trying to make so we can try and help resolve? Is it a specific type of viz or overall view styling?

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

@kknairr How can you tell that using Dashboard Studio will make this easier of OP when it is not clear what they are actually trying to do? Particularly when they are not on the latest version of Splunk, and as far as I remember, Dashboard Studio does not (easily?) support CSS as a way to modify the appearance of dashboards!

ITWhisperer
SplunkTrust
SplunkTrust

Some ids are auto-generated so you would have difficulty assigning a style to them as you probably cannot predict what id will be assigned.

Some elements can have ids assigned to them but not the dashboard label.

If you are trying to change the style of the label, use its class not its id.

livehybrid
SplunkTrust
SplunkTrust

Hi @beataficek 

Please could you provide an example of what you are trying to achieve (e.g. sample XML snippet)

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...