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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...