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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...