This documentation applies to the following versions of Splunk: 4.0 , 4.0.1 , 4.0.2 , 4.0.3 , 4.0.4 , 4.0.5 , 4.0.6 , 4.0.7 , 4.0.8 , 4.0.9 , 4.0.10
Performs k-means clustering on selected fields.
kmeans [kmeans-options]* field-list
Performs k-means clustering on select fields (or all numerical fields if empty). Events in the same cluster will be moved next to each other. Optionally the cluster number for each event is displayed.
Example 1: Group search results into 4 clusters based on the values of the "date_hour" and "date_minute" fields.
Example 2: Group results into 2 clusters based on the values of all numerical fields.