anomalousvalue
anomalousvalue
Synopsis
Finds and summarizes irregular, or uncommon, search results.
Syntax
anomalousvalue <av-option> [action] [pthresh] [field-list]
Optional arguments
- action
- Syntax: action=annotate | filter | summary
- Description: Specify whether to return the anomaly score (annotate), filter out events with anomalous values (filter), or a summary of anomaly statistics (summary). Defaults to filter.
- <av-option>
- Syntax: minsupcount=<integer> | maxanofreq=<float> | minsupfreq=<float> | minnormfreq=<float>
- Description: Define the minimum number of rows that must contain a field in order to consider the field at all (minsupcount), the maximum frequency (as a decimal) for the value to be considered anomalous (maxanofreq), the minimum support frequency (minsupfreq), and the minimum normal frequency (minnormfreq). The minimum support frequency defines the smallest fraction of overall events that must contain a field, for that field to be considered anomalous. The minimum normal frequency defines the smallest fraction of times that a field's values must be considered normal, for the field to be used to determine if the event is anomalous.
- pthresh
- Syntax: pthresh=<num>
- Description: Probably threshold (as a decimal) that has to be met for a value to be considered anomalous. Defaults to 0.01.
Description
Identifies or summarizes the values in the data that are anomalous either by frequency of occurrence or number of standard deviations from the mean.
- If action is
annotate, a new field is added to the event containing the anomalous value that indicates the anomaly score of the value. - If action is
filter, events with anomalous value(s) are isolated. - If action is
summary, a table summarizing the anomaly statistics for each field is generated.
Examples
Example 1: Return only uncommon values the search results.
... | anomalousvalueThis is the same as running the following search:
...| anomalousvalue action=filter pthresh=0.01Example 2: Return uncommon values from the host "reports".
host="reports" | anomalousvalue action=filter pthresh=0.02Example 3: Return a summary of the anomaly statistics for each numeric field.
source=/var/log* | anomalousvalue action=summary pthresh=0.02 | search isNum=YESSee also
af, analyzefields, anomalies, cluster, kmeans, outlier
Answers
Have questions? Visit Splunk Answers and see what questions and answers the Splunk community has using the anomalousvalue command.
This documentation applies to the following versions of Splunk: 4.1 , 4.1.1 , 4.1.2 , 4.1.3 , 4.1.4 , 4.1.5 , 4.1.6 , 4.1.7 , 4.1.8 , 4.2 , 4.2.1 , 4.2.2 , 4.2.3 , 4.2.4 , 4.2.5 , 4.3 View the Article History for its revisions.
