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!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...