Install the Splunk Machine Learning Toolkit
The Splunk Machine Learning Toolkit (MLTK) enables users to create, validate, manage, and operationalize machine learning models through a guided user interface. Use the following directions to install MLTK onto your system(s).
Requirements
The Splunk Machine Learning Toolkit requires the Python for Scientific Computing (PSC) add-on. Version 5.4.0 of MLTK requires version 4.1.2, 4.1.0, or 3.1.0 of the Python for Scientific computing add-on. These versions of the Python for Scientific Computing (PSC) add-on include the ONNX library and are required to bring pre-trained ONNX models into MLTK. See, Upload and inference pre-trained ONNX models in MLTK.
In order to successfully run the Splunk Machine Learning Toolkit, the following is required:
- Splunk Enterprise 8.1.x or higher, or Splunk Cloud Platform.
- Installation of the correct version of the Python for Scientific Computing (PSC) add-on from Splunkbase.
- Installation of the Splunk Machine Learning Toolkit app from Splunkbase.
Choose the appropriate operating system version of the Python for Scientific Computing (PSC) add-on for your environment:
On some Windows installations, installing PSC through the Splunk Manage Apps user interface results in an error. This error is usually benign and you can ignore it. In some cases, you might need to manually unpack the package in the apps directory to get past the error.
Specific version dependencies
For version information that includes MLTK, the PSC add-on, Python, and Splunk platform, see Splunk Machine Learning Toolkit version dependencies.
MLTK Version PSC Version 5.4.0 3.1.0, 4.1.0, or 4.1.2 5.3.3 3.0.2, 3.1.0, 4.0.0, 4.1.0, or 4.1.2 5.3.1 3.0.0, 3.0.1, or 3.0.2 5.3.0 3.0.0, 3.0.1, or 3.0.2 5.2.2 2.0.0, 2.0.1, or 2.0.2 5.2.1 2.0.0, 2.0.1, or 2.0.2 5.2.0 2.0.0, 2.0.1, or 2.0.2 5.1.0 2.0.0, 2.0.1, or 2.0.2 5.0.0 2.0.0, 2.0.1, or 2.0.2 4.5.0 1.4 4.4.2 1.3 or 1.4 4.4.1 1.3 or 1.4 4.4.0 1.3 or 1.4 4.3.0 1.3 or 1.4 4.2.0 1.3 or 1.4 4.1.0 1.3 4.0.0 1.3 3.4.0 1.3 3.3.0 1.2 or 1.3 3.2.0 1.2 or 1.3 3.1.0 1.2
Splunk Cloud Platform deployments
Follow the appropriate directions for your instance of Splunk Cloud Platform.
Splunk Cloud Platform trial
Install the Python for Scientific Computing add-on and the Splunk Machine Learning Toolkit app to your instance of Splunk Cloud Platform trial:
- Log into your Splunk Cloud Platform trial instance.
- From the Splunk Web home screen, click on the gear icon next to Apps in the left navigation bar.
- Click Browse more apps.
- Search for the Python for Scientific Computing add-on and install it.
- Search for the Splunk Machine Learning Toolkit app and install it.
Splunk Cloud Platform
Open a ticket with support and request an installation of the Python for Scientific Computing add-on and Splunk Machine Learning Toolkit app..
Splunk Enterprise single instance deployments
Follow these directions for single instance deployments.
Install the Python for Scientific Computing add-on and Splunk Machine Learning Toolkit app onto your single instance Splunk Enterprise
- Install the Python for Scientific Computing add-on.
- Install the Splunk Machine Learning Toolkit app.
Install an app or add-on in Splunk Web
- In Splunk Web, click on the gear icon next to Apps in the left navigation bar.
- On the Apps page, click Install app from file.
- Click Choose File, navigate to and select the package file for the app or add-on, then click Open.
- Click Upload.
Install an app or add-on from the command line
At the command line, enter the following content, depending on your operating system.
- Unix/Linux:
./splunk install app <path/packagename>
- Windows:
splunk install app <path\packagename>
Alternatively, unpack/unzip the file then copy the app directory to $SPLUNK_HOME/etc/apps
on Unix based systems or %SPLUNK_HOME%\etc\apps
on Windows systems.
Splunk Enterprise distributed deployments
Follow these directions for distributed deployments.
Use the following tables to determine where and how to install the Splunk Machine Learning Toolkit and Python for Scientific Computing add-on in a distributed deployment of Splunk Enterprise. Depending on your environment, you may need to install the Splunk Machine Learning Toolkit and Python for Scientific Computing add-on in multiple places.
Where to install Splunk Machine Learning Toolkit and Python for Scientific Computing add-on
This table provides a reference for installing the Splunk Machine Learning Toolkit (MLTK) and Python for Scientific Computing add-on (PSC) to a distributed deployment of Splunk Enterprise.
Splunk instance type Supported MLTK required PSC required Actions required / Comments Search Heads Yes Yes Yes Install MLTK and the PSC add-on to all search heads where the Machine Learning Toolkit is used. Search heads must be running Splunk Enterprise 6.6 or greater. Indexers No No No Do not install on Indexers. Heavy Forwarders No No No These apps do not contain a data collection component. Universal Forwarders No No No These apps do not contain a data collection component. Light Forwarders No No No These apps do not contain a data collection component.
Distributed deployment feature compatibility
This table describes the compatibility of the Splunk Machine Learning Toolkit and Python for Scientific Computing add-on with Splunk distributed deployment features.
Distributed deployment feature Supported Actions required Search Head Clusters Yes Search heads must be running Splunk Enterprise version 6.6.x or higher. Indexer Clusters No Do not install on Indexer Clusters.
Splunk Machine Learning Toolkit files
You can view the source code for the Splunk Machine Learning Toolkit app in Unix and Windows environments:
- For Unix-based systems, see
$SPLUNK_HOME/etc/apps/Splunk_ML_Toolkit
. - For Windows systems, see
%SPLUNK_HOME%\etc\apps\Splunk_ML_Toolkit
.
The Splunk Machine Learning Toolkit is not open source and MLTK source code is provided as an example only, and for educational purposes.
Refer to the following table for sub-directory names and descriptions:
Subdirectory | Description |
---|---|
appserver/static and /bin
|
Contains the underlying code files for Python, JavaScript, CSS, and images. |
/default
|
Contains configuration and dashboard files. |
/lookups
|
Contains the sample datasets used in the Showcase examples, along with more information about the datasets and their licenses. |
Bundle replication
Permanent model files, sometimes referred to as learned models or encoded lookups, are saved on disk. These files follow Splunk knowledge object rules, including permissions and bundle replication. Bundle replication is the process by which knowledge objects on the search head are distributed to the indexers.
The Splunk Machine Learning Toolkit includes a number of example model files that support the Showcase page. These examples are powered by .csv lookup files. To prevent performance issues, these .csv lookup files are not included in MLTK bundle replication process.
Scoring metrics in the Splunk Machine Learning Toolkit | Install the GitHub for Machine Learning App |
This documentation applies to the following versions of Splunk® Machine Learning Toolkit: 5.4.0
Feedback submitted, thanks!