The arules command looks for associative relationships between field values. The command returns a table with the following columns: Given fields, Implied fields, Strength, Given fields support, and Implied fields support. The given and implied field values are the values of the fields you supply. The Strength value indicates the relationship between (among) the given and implied field values.
Implements arules agorithm as discussed in Michael Hahsler, Bettina Gruen and Kurt Hornik (2012). arules: Mining Association Rules and Frequent Itemsets. R package version 1.0-12. This algorithm is similar to the algorithms used for online shopping websites which suggest related items based on what items other customers have viewed or purchased.
arules [<arules-option>... ] <field-list>...
- Syntax: <field> <field> ...
- Description: The list of field names. At least two fields must be specified.
- Syntax: <support> | <confidence>
- Description: Options for arules command.
- Syntax: sup=<int>
- Description: Specify a support limit. Associations with computed support levels smaller than this value are not included in the output results. The support option must be a positive integer.
- Default: 3
- Syntax: conf=<float>
- Description: Specify a confidence limit. Associations with a confidence (expressed as
Strengthfield) are not included in the output results. Must be between 0 and 1.
- Default: .5
Example 1: Search for the likelihood that the fields are related.
... | arules field1 field2 field3
... | arules sup=3 conf=.6 field1 field2 field3
Have questions? Visit Splunk Answers and see what questions and answers the Splunk community has about using the arules command.
This documentation applies to the following versions of Splunk Cloud™: 7.0.11, 7.0.13, 7.1.3, 7.1.6, 7.2.4, 7.2.6, 7.2.7, 7.2.8, 7.2.9, 7.2.10, 8.0.2001, 8.0.2003, 8.0.2004