2017-06-19 21:23:58 -04:00
|
|
|
[role="xpack"]
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-results-resource]]
|
2017-06-06 16:42:47 -04:00
|
|
|
=== Results Resources
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Several different result types are created for each job. You can query anomaly
|
2017-06-12 13:41:14 -04:00
|
|
|
results for _buckets_, _influencers_, and _records_ by using the results API.
|
2017-04-25 17:08:29 -04:00
|
|
|
|
|
|
|
Results are written for each `bucket_span`. The timestamp for the results is the
|
|
|
|
start of the bucket time interval.
|
|
|
|
|
|
|
|
The results include scores, which are calculated for each anomaly result type and
|
|
|
|
each bucket interval. These scores are aggregated in order to reduce noise, and
|
|
|
|
normalized in order to identify and rank the most mathematically significant
|
|
|
|
anomalies.
|
|
|
|
|
|
|
|
Bucket results provide the top level, overall view of the job and are ideal for
|
|
|
|
alerts. For example, the bucket results might indicate that at 16:05 the system
|
|
|
|
was unusual. This information is a summary of all the anomalies, pinpointing
|
|
|
|
when they occurred.
|
|
|
|
|
|
|
|
Influencer results show which entities were anomalous and when. For example,
|
|
|
|
the influencer results might indicate that at 16:05 `user_name: Bob` was unusual.
|
|
|
|
This information is a summary of all the anomalies for each entity, so there
|
|
|
|
can be a lot of these results. Once you have identified a notable bucket time,
|
|
|
|
you can look to see which entities were significant.
|
|
|
|
|
|
|
|
Record results provide details about what the individual anomaly was, when it
|
|
|
|
occurred and which entity was involved. For example, the record results might
|
|
|
|
indicate that at 16:05 Bob sent 837262434 bytes, when the typical value was
|
|
|
|
1067 bytes. Once you have identified a bucket time and perhaps a significant
|
|
|
|
entity too, you can drill through to the record results in order to investigate
|
|
|
|
the anomalous behavior.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Categorization results contain the definitions of _categories_ that have been
|
|
|
|
identified. These are only applicable for jobs that are configured to analyze
|
|
|
|
unstructured log data using categorization. These results do not contain a
|
2017-06-19 21:23:58 -04:00
|
|
|
timestamp or any calculated scores. For more information, see
|
|
|
|
{xpack-ref}/ml-configuring-categories.html[Categorizing Log Messages].
|
|
|
|
//<<ml-configuring-categories>>.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
* <<ml-results-buckets,Buckets>>
|
2017-04-25 11:01:27 -04:00
|
|
|
* <<ml-results-influencers,Influencers>>
|
|
|
|
* <<ml-results-records,Records>>
|
2017-04-10 19:14:26 -04:00
|
|
|
* <<ml-results-categories,Categories>>
|
|
|
|
|
|
|
|
[float]
|
2017-04-25 11:01:27 -04:00
|
|
|
[[ml-results-buckets]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Buckets
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Bucket results provide the top level, overall view of the job and are best for
|
|
|
|
alerting.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
Each bucket has an `anomaly_score`, which is a statistically aggregated and
|
2017-04-25 17:08:29 -04:00
|
|
|
normalized view of the combined anomalousness of all the record results within
|
|
|
|
each bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
One bucket result is written for each `bucket_span` for each job, even if it is
|
|
|
|
not considered to be anomalous. If the bucket is not anomalous, it has an
|
|
|
|
`anomaly_score` of zero.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
When you identify an anomalous bucket, you can investigate further by expanding
|
|
|
|
the bucket resource to show the records as nested objects. Alternatively, you
|
|
|
|
can access the records resource directly and filter by the date range.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
A bucket resource has the following properties:
|
|
|
|
|
|
|
|
`anomaly_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The maximum anomaly score, between 0-100, for any of the bucket
|
|
|
|
influencers. This is an overall, rate-limited score for the job. All the
|
|
|
|
anomaly records in the bucket contribute to this score. This value might be
|
|
|
|
updated as new data is analyzed.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
`bucket_influencers`::
|
2017-04-25 11:01:27 -04:00
|
|
|
(array) An array of bucket influencer objects.
|
|
|
|
For more information, see <<ml-results-bucket-influencers,Bucket Influencers>>.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-25 11:01:27 -04:00
|
|
|
(time units) The length of the bucket.
|
2017-04-11 16:25:38 -04:00
|
|
|
This value matches the `bucket_span` that is specified in the job.
|
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`event_count`::
|
|
|
|
(number) The number of input data records processed in this bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`initial_anomaly_score`::
|
|
|
|
(number) The maximum `anomaly_score` for any of the bucket influencers.
|
2017-04-25 17:08:29 -04:00
|
|
|
This is the initial value that was calculated at the time the bucket was
|
|
|
|
processed.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`is_interim`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(boolean) If true, this is an interim result. In other words, the bucket
|
|
|
|
results are calculated based on partial input data.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`job_id`::
|
|
|
|
(string) The unique identifier for the job that these results belong to.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`processing_time_ms`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The amount of time, in milliseconds, that it took to analyze the
|
|
|
|
bucket contents and calculate results.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`result_type`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) Internal. This value is always set to `bucket`.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`timestamp`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(date) The start time of the bucket. This timestamp uniquely identifies the
|
|
|
|
bucket. +
|
2017-04-25 11:15:53 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
NOTE: Events that occur exactly at the timestamp of the bucket are included in
|
|
|
|
the results for the bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
[float]
|
|
|
|
[[ml-results-bucket-influencers]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Bucket Influencers
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Bucket influencer results are available as nested objects contained within
|
|
|
|
bucket results. These results are an aggregation for each type of influencer.
|
|
|
|
For example, if both `client_ip` and `user_name` were specified as influencers,
|
|
|
|
then you would be able to determine when the `client_ip` or `user_name` values
|
|
|
|
were collectively anomalous.
|
2017-04-11 16:25:38 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
There is a built-in bucket influencer called `bucket_time` which is always
|
|
|
|
available. This bucket influencer is the aggregation of all records in the
|
|
|
|
bucket; it is not just limited to a type of influencer.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
NOTE: A bucket influencer is a type of influencer. For example, `client_ip` or
|
|
|
|
`user_name` can be bucket influencers, whereas `192.168.88.2` and `Bob` are
|
|
|
|
influencers.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
An bucket influencer object has the following properties:
|
|
|
|
|
|
|
|
`anomaly_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) A normalized score between 0-100, which is calculated for each bucket
|
|
|
|
influencer. This score might be updated as newer data is analyzed.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(time units) The length of the bucket. This value matches the `bucket_span`
|
|
|
|
that is specified in the job.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`initial_anomaly_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The score between 0-100 for each bucket influencer. This score is
|
|
|
|
the initial value that was calculated at the time the bucket was processed.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`influencer_field_name`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The field name of the influencer. For example `client_ip` or
|
|
|
|
`user_name`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`influencer_field_value`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The field value of the influencer. For example `192.168.88.2` or
|
|
|
|
`Bob`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(boolean) If true, this is an interim result. In other words, the bucket
|
|
|
|
influencer results are calculated based on partial input data.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`job_id`::
|
|
|
|
(string) The unique identifier for the job that these results belong to.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The probability that the bucket has this behavior, in the range 0
|
|
|
|
to 1. For example, 0.0000109783. This value can be held to a high precision
|
|
|
|
of over 300 decimal places, so the `anomaly_score` is provided as a
|
2017-04-25 11:01:27 -04:00
|
|
|
human-readable and friendly interpretation of this.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`raw_anomaly_score`::
|
|
|
|
(number) Internal.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) Internal. This value is always set to `bucket_influencer`.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(date) The start time of the bucket for which these results were calculated.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[ml-results-influencers]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Influencers
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Influencers are the entities that have contributed to, or are to blame for,
|
|
|
|
the anomalies. Influencer results are available only if an
|
|
|
|
`influencer_field_name` is specified in the job configuration.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Influencers are given an `influencer_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.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
For example, if you are analyzing unusual bytes sent and unusual domains
|
|
|
|
visited and you specified `user_name` as the influencer, then an
|
|
|
|
`influencer_score` for each anomalous user name is written per bucket. For
|
|
|
|
example, if `user_name: Bob` had an `influencer_score` greater than 75, then
|
|
|
|
`Bob` would be considered very anomalous during this time interval in one or
|
|
|
|
both of those areas (unusual bytes sent or unusual domains visited).
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
One influencer result is written per bucket for each influencer that is
|
|
|
|
considered anomalous.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
When you identify an influencer with a high score, you can investigate further
|
2017-04-10 19:14:26 -04:00
|
|
|
by accessing the records resource for that bucket and enumerating the anomaly
|
2017-04-25 17:08:29 -04:00
|
|
|
records that contain the influencer.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
An influencer object has the following properties:
|
|
|
|
|
|
|
|
`bucket_span`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(time units) The length of the bucket. This value matches the `bucket_span`
|
|
|
|
that is specified in the job.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`influencer_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) A normalized score between 0-100, which is based on the probability
|
|
|
|
of the influencer in this bucket aggregated across detectors. Unlike
|
|
|
|
`initial_influencer_score`, this value will be updated by a re-normalization
|
|
|
|
process as new data is analyzed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`initial_influencer_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) A normalized score between 0-100, which is based on the probability
|
|
|
|
of the influencer aggregated across detectors. This is the initial value that
|
|
|
|
was calculated at the time the bucket was processed.
|
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-25 17:08:29 -04:00
|
|
|
(boolean) If true, this is an interim result. In other words, the influencer
|
|
|
|
results are 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-25 11:01:27 -04:00
|
|
|
(string) The unique identifier for the job that these results belong to.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The probability that the influencer has this behavior, in the range
|
|
|
|
0 to 1. For example, 0.0000109783. This value can be held to a high precision
|
|
|
|
of over 300 decimal places, so the `influencer_score` is provided as a
|
|
|
|
human-readable and friendly interpretation of this.
|
2017-04-11 16:25:38 -04:00
|
|
|
// 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-25 17:08:29 -04:00
|
|
|
(string) Internal. This value is always set to `influencer`.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`timestamp`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(date) The start time of the bucket for which these results were calculated.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
NOTE: Additional influencer properties are added, depending on the fields being
|
|
|
|
analyzed. For example, if it's analyzing `user_name` as an influencer, then a
|
|
|
|
field `user_name` is added to the result document. This information enables you to
|
|
|
|
filter the anomaly results more easily.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
[float]
|
|
|
|
[[ml-results-records]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Records
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
Records contain the detailed analytical results. They describe the anomalous
|
|
|
|
activity that has been identified in the input data based on the detector
|
|
|
|
configuration.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
For example, if you are looking for unusually large data transfers, an anomaly
|
|
|
|
record can 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 occurrence.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
There can be many anomaly records depending on the characteristics and size of
|
|
|
|
the input data. In practice, there are often too many to be able to manually
|
2017-05-02 15:45:42 -04:00
|
|
|
process them. The {xpackml} features therefore perform a sophisticated
|
2017-04-25 17:08:29 -04:00
|
|
|
aggregation of the anomaly records into buckets.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
The number of record results depends on the number of anomalies found in each
|
|
|
|
bucket, which relates to the number of time series being modeled and the number of
|
|
|
|
detectors.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
A record object has the following properties:
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`actual`::
|
|
|
|
(array) The actual value for the bucket.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`bucket_span`::
|
|
|
|
(time units) The length of the bucket.
|
|
|
|
This value matches the `bucket_span` that is specified in the job.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`by_field_name`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The name of the analyzed field. This value is present only if
|
|
|
|
it is specified in the detector. For example, `client_ip`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`by_field_value`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The value of `by_field_name`. This value is present only if
|
|
|
|
it is specified in the detector. For example, `192.168.66.2`.
|
|
|
|
|
|
|
|
`causes`::
|
|
|
|
(array) For population analysis, an over field must be specified in the
|
|
|
|
detector. This property 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 is not 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 are 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`,
|
|
|
|
`*_field_name` and `*_field_value`. Probability and scores are not applicable
|
|
|
|
to causes.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`detector_index`::
|
|
|
|
(number) A unique identifier for the detector.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`field_name`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) Certain functions require a field to operate on, for example, `sum()`.
|
|
|
|
For those functions, this value is the name of the field to be analyzed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`function`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The function in which the anomaly occurs, as specified in the
|
|
|
|
detector configuration. For example, `max`.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`function_description`::
|
|
|
|
(string) The description of the function in which the anomaly occurs, as
|
|
|
|
specified in the detector configuration.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`influencers`::
|
|
|
|
(array) If `influencers` was specified in the detector configuration, then
|
2017-04-25 17:08:29 -04:00
|
|
|
this array contains influencers that contributed to or were to blame for an
|
|
|
|
anomaly.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`initial_record_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) A normalized score between 0-100, which is based on the
|
|
|
|
probability of the anomalousness of this record. This is the initial value
|
|
|
|
that was calculated at the time the bucket was processed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`is_interim`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(boolean) If true, this is an interim result. In other words, the anomaly
|
|
|
|
record is calculated based on partial input data.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`job_id`::
|
2017-04-25 11:01:27 -04:00
|
|
|
(string) The unique identifier for the job that these results belong to.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`over_field_name`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The name of the over field that was used in the analysis. This value
|
|
|
|
is present only if it was specified in the detector. Over fields are used
|
|
|
|
in population analysis. For example, `user`.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`over_field_value`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The value of `over_field_name`. This value is present only if it
|
|
|
|
was specified in the detector. For example, `Bob`.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`partition_field_name`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The name of the partition field that was used in the analysis. This
|
|
|
|
value is present only if it was specified in the detector. For example,
|
|
|
|
`region`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`partition_field_value`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) The value of `partition_field_name`. This value is present only if
|
|
|
|
it was specified in the detector. For example, `us-east-1`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
|
|
|
`probability`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) The probability of the individual anomaly occurring, in the range
|
|
|
|
0 to 1. For example, 0.0000772031. This value can be held to a high precision
|
|
|
|
of over 300 decimal places, so the `record_score` is provided as a
|
2017-04-25 11:01:27 -04:00
|
|
|
human-readable and friendly interpretation of this.
|
|
|
|
//In scientific notation, a value of 3.24E-300 is highly unlikely and therefore
|
|
|
|
//highly anomalous.
|
|
|
|
|
|
|
|
`record_score`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(number) A normalized score between 0-100, which is based on the probability
|
|
|
|
of the anomalousness of this record. Unlike `initial_record_score`, this
|
|
|
|
value will be updated by a re-normalization process as new data is analyzed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`result_type`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) Internal. This is always set to `record`.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-10 19:14:26 -04:00
|
|
|
`timestamp`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(date) The start time of the bucket for which these results were calculated.
|
2017-04-24 13:46:17 -04:00
|
|
|
|
2017-04-25 11:01:27 -04:00
|
|
|
`typical`::
|
|
|
|
(array) The typical value for the bucket, according to analytical modeling.
|
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
NOTE: Additional record properties are added, depending on the fields being
|
|
|
|
analyzed. For example, if it's analyzing `hostname` as a _by field_, then a field
|
|
|
|
`hostname` is added to the result document. This information enables you to
|
|
|
|
filter the anomaly results more easily.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-18 18:13:21 -04:00
|
|
|
|
2017-04-10 19:14:26 -04:00
|
|
|
[float]
|
|
|
|
[[ml-results-categories]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Categories
|
2017-04-10 19:14:26 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
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.
|
2017-04-25 11:01:27 -04:00
|
|
|
|
2017-04-25 17:08:29 -04:00
|
|
|
The anomaly results from a categorization analysis are available as bucket,
|
|
|
|
influencer, and record results. For example, the results might indicate that
|
|
|
|
at 16:45 there was an unusual count of log message category 11. You can then
|
|
|
|
examine the description and examples of that category.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
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-25 11:01:27 -04:00
|
|
|
(string) The unique identifier for the job that these results belong to.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`max_matching_length`::
|
2017-04-25 11:01:27 -04:00
|
|
|
(unsigned integer) The maximum length of the fields that matched the category.
|
2017-04-25 17:08:29 -04:00
|
|
|
The value is increased by 10% to enable matching for similar fields that have
|
|
|
|
not been analyzed.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`regex`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) A regular expression that is used to search for values that match the
|
|
|
|
category.
|
2017-04-10 19:14:26 -04:00
|
|
|
|
|
|
|
`terms`::
|
2017-04-25 17:08:29 -04:00
|
|
|
(string) A space separated list of the common tokens that are matched in
|
|
|
|
values of the category.
|