All Apps and Add-ons

No content is shown in Machine Learning Toolkit Showcase landing page in Safari browser

pdrieger_splunk
Splunk Employee
Splunk Employee

I have a issue that keeps the Machine Learning Toolkit Showcase overview page empty when I open the page in Safari. In Chrome the page is shown correctly. I get an error in Javascript that role.showcase variable is undefined. Screen attached. My system config: Splunk 7.0, MLTK 3.1, Safari Version 11.0.3 (12604.5.6.1.1) on macOS Sierra 10.12.6. Anyone else experienced (and solved?) this issue? Thanks, Philipp

alt text

0 Karma
1 Solution

aljohnson_splun
Splunk Employee
Splunk Employee

@pdrieger: can you try clearing your browser cache?

this is likely caused by the fact that the MLTK uses local storage to store the information from showcase example type dropdown.

To test, open a console on the showcase page (Developer tools) and type:

localStorage.getItem('mlts-role')

As of writing, the only legitimate options for this value are: default, it, business, security, iot. Likely, you've used an internal app where someone just blindly copied and pasted the showcase examples without changing any of the values, and have since added an item to that list that we don't support or know what to do with.

If you find that the mlts-role is a different value, and that clearing the cache doesn't work, you can try something like:

localStorage.setItem('mtls-role', 'default')

Then go track down the culprit app and developer and harass them for copying and pasting entire dashboards 😉

View solution in original post

aljohnson_splun
Splunk Employee
Splunk Employee

@pdrieger: can you try clearing your browser cache?

this is likely caused by the fact that the MLTK uses local storage to store the information from showcase example type dropdown.

To test, open a console on the showcase page (Developer tools) and type:

localStorage.getItem('mlts-role')

As of writing, the only legitimate options for this value are: default, it, business, security, iot. Likely, you've used an internal app where someone just blindly copied and pasted the showcase examples without changing any of the values, and have since added an item to that list that we don't support or know what to do with.

If you find that the mlts-role is a different value, and that clearing the cache doesn't work, you can try something like:

localStorage.setItem('mtls-role', 'default')

Then go track down the culprit app and developer and harass them for copying and pasting entire dashboards 😉

pdrieger_splunk
Splunk Employee
Splunk Employee

Thanks Xander - you're a hero - outpacing anyone else in answering fast 🙂 This helped to solve the issue immediately.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...