anomalousvalue
Use the anomalousvalue operator to compute an anomaly score for each field of each event, relative to the values of this field across other events.
Syntax
|anomalousvalue <av-options> [action=annotate|filter|summary] [pthresh=<number>] [<field-list>]
<av-options>
|
Required. Specify one or more option to control which fields are considered for discriminating anomalies. Possible options:
|
action=annotate|filter|summary
|
Specify whether to return the anomaly score (annotate), filter out events that are not anomalous values (filter), or return a summary of anomaly statistics (summary). Possible options:
Default: |
pthresh=<number>
|
Optional. Specify a probability threshold (as a decimal) that has to be met for a value to be considered anomalous. |
<field-list>
|
Optional. Specify a comma-separated or space-separated list of fields that you need to analyze. Default: empty If the field list is not specified, all fields are considered. |
Usage
You can use the anomalousvalue operator to detect outliers or anomalous values in a dataset. This can be particularly useful for identifying unusual patterns or detecting potential issues in your data. The operator applies statistical methods to determine which values deviate significantly from the expected range based on historical data.
For numerical fields, anomalousvalue identifies or summarizes the values in the data that are anomalous either by frequency of occurrence or number of standard deviations from the mean. For fields that are determined to be anomalous, a new field is added according to the selected action.
Examples
Example 1: Filter events with anomalous values below a probability threshold.
|anomalousvalue action=filter pthresh=0.01
Example 2: Detect and annotate anomalous values in the dataset.
|anomalousvalue action=annotate