2017-04-11 21:52:47 -04:00
|
|
|
//lcawley Verified example output 2017-04-11
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-results-resource]]
|
|
|
|
==== Results Resources
|
|
|
|
|
2017-04-10 19:14:26 -04:00
|
|
|
The results of a job are organized into _records_ and _buckets_.
|
|
|
|
The results are aggregated and normalized in order to identify the mathematically
|
|
|
|
significant anomalies.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-10 19:14:26 -04:00
|
|
|
When categorization is specified, the results also contain category definitions.
|
|
|
|
|
|
|
|
* <<ml-results-records,Records>>
|
|
|
|
* <<ml-results-influencers,Influencers>>
|
|
|
|
* <<ml-results-buckets,Buckets>>
|
|
|
|
* <<ml-results-categories,Categories>>
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-results-records]]
|
|
|
|
===== Records
|
|
|
|
|
|
|
|
Records contain the analytic results. They detail the anomalous activity that
|
|
|
|
has been identified in the input data based upon the detector configuration.
|
|
|
|
For example, if you are looking for unusually large data transfers,
|
|
|
|
an anomaly record would identify the source IP address, the destination,
|
|
|
|
the time window during which it occurred, the expected and actual size of the
|
|
|
|
transfer and the probability of this occurring.
|
|
|
|
Something that is highly improbable is therefore highly anomalous.
|
|
|
|
|
|
|
|
There can be many anomaly records depending upon the characteristics and size
|
|
|
|
of the input data; in practice too many to be able to manually process.
|
|
|
|
The {xpack} {ml} features therefore perform a sophisticated aggregation of
|
|
|
|
the anomaly records into buckets.
|
|
|
|
|
|
|
|
A record object has the following properties:
|
|
|
|
|
|
|
|
`actual`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The actual value for the bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The length of the bucket in seconds.
|
2017-04-11 16:25:38 -04:00
|
|
|
This value matches the `bucket_span` that is specified in the job.
|
|
|
|
|
|
|
|
//`byFieldName`::
|
|
|
|
//TBD: This field did not appear in my results, but it might be a valid property.
|
2017-04-11 22:26:18 -04:00
|
|
|
// (string) The name of the analyzed field, if it was specified in the detector.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
|
|
|
//`byFieldValue`::
|
|
|
|
//TBD: This field did not appear in my results, but it might be a valid property.
|
2017-04-11 22:26:18 -04:00
|
|
|
// (string) The value of `by_field_name`, if it was specified in the detecter.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
|
|
|
//`causes`
|
|
|
|
//TBD: This field did not appear in my results, but it might be a valid property.
|
2017-04-11 22:26:18 -04:00
|
|
|
// (array) If an over field was specified in the detector, this property
|
2017-04-11 16:25:38 -04:00
|
|
|
// contains an array of anomaly records that are the causes for the anomaly
|
|
|
|
// that has been identified for the over field.
|
|
|
|
// If no over fields exist. this field will not be present.
|
|
|
|
// This sub-resource contains the most anomalous records for the `over_field_name`.
|
|
|
|
// For scalability reasons, a maximum of the 10 most significant causes of
|
|
|
|
// the anomaly will be returned. As part of the core analytical modeling,
|
|
|
|
// these low-level anomaly records are aggregated for their parent over field record.
|
|
|
|
// The causes resource contains similar elements to the record resource,
|
|
|
|
// namely actual, typical, *FieldName and *FieldValue.
|
|
|
|
// Probability and scores are not applicable to causes.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`detector_index`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) A unique identifier for the detector.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`field_name`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) Certain functions require a field to operate on.
|
2017-04-11 21:52:47 -04:00
|
|
|
For those functions, this is the name of the field to be analyzed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`function`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The function in which the anomaly occurs.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`function_description`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The description of the function in which the anomaly occurs, as
|
2017-04-11 16:25:38 -04:00
|
|
|
specified in the detector configuration information.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`influencers`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(array) If `influencers` was specified in the detector configuration, then
|
2017-04-11 16:25:38 -04:00
|
|
|
this array contains influencers that contributed to or were to blame for an
|
|
|
|
anomaly.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`initial_record_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 94.1386.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(boolean) If true, then this anomaly record is an interim result.
|
2017-04-11 16:25:38 -04:00
|
|
|
In other words, it is calculated based on partial input data
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
//`kpi_indicator`::
|
2017-04-11 22:26:18 -04:00
|
|
|
// () TBD. For example, ["online_purchases"]
|
2017-04-11 21:52:47 -04:00
|
|
|
// I did not receive this in later tests. Is it still valid?
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`partition_field_name`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The name of the partition field that was used in the analysis, if
|
2017-04-11 16:25:38 -04:00
|
|
|
such a field was specified in the detector.
|
|
|
|
|
|
|
|
//`overFieldName`::
|
|
|
|
// TBD: This field did not appear in my results, but it might be a valid property.
|
2017-04-11 22:26:18 -04:00
|
|
|
// (string) The name of the over field, if `over_field_name` was specified
|
2017-04-11 16:25:38 -04:00
|
|
|
// in the detector.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`partition_field_value`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The value of the partition field that was used in the analysis, if
|
2017-04-11 16:25:38 -04:00
|
|
|
`partition_field_name` was specified in the detector.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The probability of the individual anomaly occurring.
|
2017-04-11 16:25:38 -04:00
|
|
|
This value is in the range 0 to 1. For example, 0.0000772031.
|
|
|
|
//This value is held to a high precision of over 300 decimal places.
|
|
|
|
//In scientific notation, a value of 3.24E-300 is highly unlikely and therefore
|
|
|
|
//highly anomalous.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`record_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) An anomaly score for the bucket time interval.
|
2017-04-11 16:25:38 -04:00
|
|
|
The score is calculated based on a sophisticated aggregation of the anomalies
|
|
|
|
in the bucket.
|
|
|
|
//Use this score for rate-controlled alerting.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) TBD. For example, "record".
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`sequence_num`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 1.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(date) The start time of the bucket that contains the record, specified in
|
2017-04-11 16:25:38 -04:00
|
|
|
ISO 8601 format. For example, 1454020800000.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`typical`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The typical value for the bucket, according to analytical modeling.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-results-influencers]]
|
|
|
|
===== Influencers
|
|
|
|
|
|
|
|
Influencers are the entities that have contributed to, or are to blame for,
|
|
|
|
the anomalies. Influencers are given an anomaly score, which is calculated
|
|
|
|
based on the anomalies that have occurred in each bucket interval.
|
|
|
|
For jobs with more than one detector, this gives a powerful view of the most
|
|
|
|
anomalous entities.
|
|
|
|
|
|
|
|
Upon identifying an influencer with a high score, you can investigate further
|
|
|
|
by accessing the records resource for that bucket and enumerating the anomaly
|
|
|
|
records that contain this influencer.
|
|
|
|
|
|
|
|
An influencer object has the following properties:
|
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 300.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
2017-04-11 22:26:18 -04:00
|
|
|
// Same as for buckets? i.e. (unsigned integer) The length of the bucket in seconds.
|
2017-04-11 16:25:38 -04:00
|
|
|
// This value is equal to the `bucket_span` value in the job configuration.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`influencer_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) An anomaly score for the influencer in this bucket time interval.
|
2017-04-11 16:25:38 -04:00
|
|
|
The score is calculated based upon a sophisticated aggregation of the anomalies
|
|
|
|
in the bucket for this entity. For example: 94.1386.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`initial_influencer_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 83.3831.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`influencer_field_name`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The field name of the influencer.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`influencer_field_value`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The entity that influenced, contributed to, or was to blame for the
|
2017-04-11 16:25:38 -04:00
|
|
|
anomaly.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(boolean) If true, then this is an interim result.
|
2017-04-11 16:25:38 -04:00
|
|
|
In other words, it is calculated based on partial input data.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-10 19:14:26 -04:00
|
|
|
`kpi_indicator`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, "online_purchases".
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The probability that the influencer has this behavior.
|
2017-04-11 16:25:38 -04:00
|
|
|
This value is in the range 0 to 1. For example, 0.0000109783.
|
|
|
|
// For example, 0.03 means 3%. This value is held to a high precision of over
|
|
|
|
//300 decimal places. In scientific notation, a value of 3.24E-300 is highly
|
|
|
|
//unlikely and therefore highly anomalous.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, "influencer".
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`sequence_num`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 2.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(date) Influencers are produced in buckets. This value is the start time
|
2017-04-11 21:52:47 -04:00
|
|
|
of the bucket, specified in ISO 8601 format. For example, 1454943900000.
|
|
|
|
|
|
|
|
An bucket influencer object has the same following properties:
|
|
|
|
|
|
|
|
`anomaly_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) TBD
|
2017-04-11 21:52:47 -04:00
|
|
|
//It is unclear how this differs from the influencer_score.
|
|
|
|
//An anomaly score for the influencer in this bucket time interval.
|
|
|
|
//The score is calculated based upon a sophisticated aggregation of the anomalies
|
|
|
|
//in the bucket for this entity. For example: 94.1386.
|
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 300.
|
2017-04-11 21:52:47 -04:00
|
|
|
////
|
2017-04-11 22:26:18 -04:00
|
|
|
// Same as for buckets? i.e. (unsigned integer) The length of the bucket in seconds.
|
2017-04-11 21:52:47 -04:00
|
|
|
// This value is equal to the `bucket_span` value in the job configuration.
|
|
|
|
////
|
|
|
|
`initial_anomaly_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 83.3831.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`influencer_field_name`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) The field name of the influencer.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(boolean) If true, then this is an interim result.
|
2017-04-11 21:52:47 -04:00
|
|
|
In other words, it is calculated based on partial input data.
|
|
|
|
|
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The probability that the influencer has this behavior.
|
2017-04-11 21:52:47 -04:00
|
|
|
This value is in the range 0 to 1. For example, 0.0000109783.
|
|
|
|
// For example, 0.03 means 3%. This value is held to a high precision of over
|
|
|
|
//300 decimal places. In scientific notation, a value of 3.24E-300 is highly
|
|
|
|
//unlikely and therefore highly anomalous.
|
|
|
|
|
|
|
|
`raw_anomaly_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 2.32119.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, "bucket_influencer".
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`sequence_num`::
|
2017-04-11 22:26:18 -04:00
|
|
|
() TBD. For example, 2.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(date) Influencers are produced in buckets. This value is the start time
|
2017-04-11 16:25:38 -04:00
|
|
|
of the bucket, specified in ISO 8601 format. For example, 1454943900000.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-results-buckets]]
|
|
|
|
===== Buckets
|
|
|
|
|
|
|
|
Buckets are the grouped and time-ordered view of the job results.
|
|
|
|
A bucket time interval is defined by `bucket_span`, which is specified in the
|
|
|
|
job configuration.
|
|
|
|
|
|
|
|
Each bucket has an `anomaly_score`, which is a statistically aggregated and
|
|
|
|
normalized view of the combined anomalousness of the records. You can use this
|
|
|
|
score for rate controlled alerting.
|
|
|
|
|
|
|
|
//TBD: Still correct?
|
|
|
|
//Each bucket also has a maxNormalizedProbability that is equal to the highest
|
|
|
|
//normalizedProbability of the records with the bucket. This gives an indication
|
|
|
|
// of the most anomalous event that has occurred within the time interval.
|
|
|
|
//Unlike anomalyScore this does not take into account the number of correlated
|
|
|
|
//anomalies that have happened.
|
|
|
|
Upon identifying an anomalous bucket, you can investigate further by either
|
|
|
|
expanding the bucket resource to show the records as nested objects or by
|
|
|
|
accessing the records resource directly and filtering upon date range.
|
|
|
|
|
|
|
|
A bucket resource has the following properties:
|
|
|
|
|
|
|
|
`anomaly_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The aggregated and normalized anomaly score.
|
2017-04-10 19:14:26 -04:00
|
|
|
All the anomaly records in the bucket contribute to this score.
|
|
|
|
|
|
|
|
`bucket_influencers`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(array) An array of influencer objects.
|
2017-04-11 21:52:47 -04:00
|
|
|
For more information, see <<ml-results-influencers,Influencers>>.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) The length of the bucket in seconds. This value is
|
2017-04-10 19:14:26 -04:00
|
|
|
equal to the `bucket_span` value in the job configuration.
|
|
|
|
|
|
|
|
`event_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) The number of input data records processed in this bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`initial_anomaly_score`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(number) The value of `anomaly_score` at the time the bucket result was
|
2017-04-10 19:14:26 -04:00
|
|
|
created. This is normalized based on data which has already been seen;
|
|
|
|
this is not re-normalized and therefore is not adjusted for more recent data.
|
|
|
|
//TBD. This description is unclear.
|
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(boolean) If true, then this bucket result is an interim result.
|
2017-04-10 19:14:26 -04:00
|
|
|
In other words, it is calculated based on partial input data.
|
|
|
|
|
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`partition_scores`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(TBD) TBD. For example, [].
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`processing_time_ms`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) The time in milliseconds taken to analyze the bucket
|
2017-04-10 19:14:26 -04:00
|
|
|
contents and produce results.
|
|
|
|
|
|
|
|
`record_count`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) The number of anomaly records in this bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) TBD. For example, "bucket".
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(date) The start time of the bucket, specified in ISO 8601 format.
|
2017-04-10 19:14:26 -04:00
|
|
|
For example, 1454020800000. This timestamp uniquely identifies the bucket.
|
|
|
|
|
|
|
|
NOTE: Events that occur exactly at the timestamp of the bucket are included in
|
|
|
|
the results for the bucket.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-results-categories]]
|
|
|
|
===== Categories
|
|
|
|
|
|
|
|
When `categorization_field_name` is specified in the job configuration, it is
|
|
|
|
possible to view the definitions of the resulting categories. A category
|
|
|
|
definition describes the common terms matched and contains examples of matched
|
|
|
|
values.
|
|
|
|
|
|
|
|
A category resource has the following properties:
|
|
|
|
|
|
|
|
`category_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) A unique identifier for the category.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`examples`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(array) A list of examples of actual values that matched the category.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`job_id`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the job.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`max_matching_length`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(unsigned integer) The maximum length of the fields that matched the
|
2017-04-10 19:14:26 -04:00
|
|
|
category.
|
|
|
|
//TBD: Still true? "The value is increased by 10% to enable matching for
|
|
|
|
//similar fields that have not been analyzed"
|
|
|
|
|
|
|
|
`regex`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A regular expression that is used to search for values that match
|
2017-04-10 19:14:26 -04:00
|
|
|
the category.
|
|
|
|
|
|
|
|
`terms`::
|
2017-04-11 22:26:18 -04:00
|
|
|
(string) A space separated list of the common tokens that are matched in
|
2017-04-10 19:14:26 -04:00
|
|
|
values of the category.
|