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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...