Splunk® Machine Learning Toolkit

User Guide

Acrobat logo Download manual as PDF


This documentation does not apply to the most recent version of Splunk® Machine Learning Toolkit. For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Cluster Numeric Events

The Cluster Numeric Events assistant partitions events with multiple numeric fields into groups of events based on the values of those fields.

The groupings aren't known in advance, therefore, the learning is unsupervised.


This visualization shows four clusters, differentiable by color.


Algorithms

The Cluster Numeric Events assistant uses the following algorithms:

Workflow

  1. Create a new Cluster Numeric Events Experiment, including the provision of a name.
  2. On the resulting page, run a search.
  3. You will see a raw data preview on the bottom panel of the screen.

  4. (Optional) Add preprocessing steps via the +Add a step button.
  5. See Preprocessing for information.

  6. Select the algorithm to use for clustering from the Algorithm drop down menu.
  7. Specify the fields to use for clustering.
  8. If your data has been preprocessed, you should choose from the preprocessed fields.

  9. For K-means, Birch, and Spectral Clustering, specify the number of clusters to use. For DBSCAN, specify a value between 0 and 1 for eps (the size of the neighborhood).
  10. Smaller numbers result in more clusters.

  11. Click Cluster.
  12. View any changes to this cluster under the Experiment History tab.

Important note: The experiment will now be saved as a Draft only. In order to update alerts or reports, click the Save button in the top right of the page.

Interpret and validate

After the numeric events are clustered, review the cluster visualization. The fields included in the visualization are listed. You can add and remove fields, and then click Visualize to change the visualization.

You can drag a selection rectangle around some of the points in a plot to see the corresponding points on the other plots.

MLApp selectionrectangle.png

The visualization displays a maximum of 1000 points, 20 series and 6 fields (1 label and 5 variables).

Deploy clustering

After you interpret and validate the clustering, deploy it:

  1. Click the Save button in the top right corner of the page. You can edit the title and add or edit and associated description. Click Save when ready.
  2. Note than if you have chosen DBSCAN or Spectral Clustering as the algorithm, you can save the Experiment, but not the model.

  3. Click Open in Search to open a new Search tab. This tab will be filled out with the search query that was used to fit the model.
  4. Click Show SPL to see the search query that was used for the clustering with comments that contain explanations.
  5. For example, you could use this same query on a different data set.

  6. Under the Experiments tab, you can see experiments grouped by assistant analytic. Under the Manage menu, choose to:
    • Create Alert (barring use of DBSCAN or Spectral Clustering Algorithms)
    • Edit Title and Description
    • Schedule Training
  7. Click Create Alert to set up an alert that is triggered when the number of events in the cluster meets a threshold you specify. Once at least one alert is present, the bell icon will be highlighted in blue.

If you make changes to the saved experiment you may impact affiliated alerts. Re-validate your alerts once experiment changes are complete.

For more information about alerts, see Getting started with alerts in the Splunk Enterprise Alerting Manual.

Last modified on 20 June, 2018
PREVIOUS
Forecast Time Series
  NEXT
Preprocessing Methods

This documentation applies to the following versions of Splunk® Machine Learning Toolkit: 3.2.0, 3.3.0


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters