Getting Data In

('div.nav').prepend not working

uppukumar
Explorer

HI All,
I want to insert a image in splunk page
for that i used
"$('div.nav').prepend('rslogo');"

above thing is working in below 7.2 version,
But not working in latest version

can any one help on this thing

Thanks,
Advance

Tags (1)
0 Karma

tom_frotscher
Builder

Hi,

looks like they changed the class attributes of the header and the navigation. Try something like this:

$("header > div > div:nth-of-type(2)").prepend('Test')

0 Karma

DavidHourani
Super Champion

Could you point us to where you got the class attributes from ?

0 Karma

tom_frotscher
Builder

Hi,

open up a splunk dashboard and use your browsers developer console to take a look at the class attributes. For example in Chrome right click on the navbar in the splunk dashboard and chose inspect element.

You can also test your selectors "live" in the browsers console.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...