2017-06-19 21:23:58 -04:00
|
|
|
[role="xpack"]
|
2018-08-31 19:49:24 -04:00
|
|
|
[testenv="platinum"]
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-datafeed-resource]]
|
2017-06-06 16:42:47 -04:00
|
|
|
=== {dfeed-cap} Resources
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-05-02 15:45:42 -04:00
|
|
|
A {dfeed} resource has the following properties:
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2017-04-10 11:59:27 -04:00
|
|
|
`aggregations`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(object) If set, the {dfeed} performs aggregation searches.
|
2017-04-27 14:17:06 -04:00
|
|
|
Support for aggregations is limited and should only be used with
|
2017-06-19 21:23:58 -04:00
|
|
|
low cardinality data. For more information, see
|
|
|
|
{xpack-ref}/ml-configuring-aggregation.html[Aggregating Data for Faster Performance].
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
`chunking_config`::
|
2017-04-27 13:51:48 -04:00
|
|
|
(object) Specifies how data searches are split into time chunks.
|
|
|
|
See <<ml-datafeed-chunking-config>>.
|
2017-05-15 12:30:30 -04:00
|
|
|
For example: `{"mode": "manual", "time_span": "3h"}`
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-04-10 11:59:27 -04:00
|
|
|
`datafeed_id`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the {dfeed}.
|
2018-02-19 14:48:09 -05:00
|
|
|
This property is informational; you cannot change the identifier for existing
|
|
|
|
{dfeeds}.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
|
|
|
`frequency`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(time units) The interval at which scheduled queries are made while the
|
|
|
|
{dfeed} runs in real time. The default value is either the bucket span for short
|
2017-04-26 14:18:51 -04:00
|
|
|
bucket spans, or, for longer bucket spans, a sensible fraction of the bucket
|
2017-05-15 12:30:30 -04:00
|
|
|
span. For example: `150s`.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-05-08 09:53:04 -04:00
|
|
|
`indices`::
|
2017-05-15 12:30:30 -04:00
|
|
|
(array) An array of index names. For example: `["it_ops_metrics"]`
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-05-08 09:53:04 -04:00
|
|
|
`job_id`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(string) The unique identifier for the job to which the {dfeed} sends data.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
|
|
|
`query`::
|
2017-04-27 14:17:06 -04:00
|
|
|
(object) The {es} query domain-specific language (DSL). This value
|
|
|
|
corresponds to the query object in an {es} search POST body. All the
|
|
|
|
options that are supported by {es} can be used, as this object is
|
|
|
|
passed verbatim to {es}. By default, this property has the following
|
|
|
|
value: `{"match_all": {"boost": 1}}`.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
|
|
|
`query_delay`::
|
2017-04-27 14:17:06 -04:00
|
|
|
(time units) The number of seconds behind real time that data is queried. For
|
|
|
|
example, if data from 10:04 a.m. might not be searchable in {es} until
|
2017-09-19 11:47:23 -04:00
|
|
|
10:06 a.m., set this property to 120 seconds. The default value is randomly
|
|
|
|
selected between `60s` and `120s`. This randomness improves the query
|
2018-02-19 14:48:09 -05:00
|
|
|
performance when there are multiple jobs running on the same node.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-05-15 12:30:30 -04:00
|
|
|
`script_fields`::
|
|
|
|
(object) Specifies scripts that evaluate custom expressions and returns
|
|
|
|
script fields to the {dfeed}.
|
|
|
|
The <<ml-detectorconfig,detector configuration objects>> in a job can contain
|
|
|
|
functions that use these script fields.
|
2017-06-23 14:42:37 -04:00
|
|
|
For more information, see
|
|
|
|
{xpack-ref}/ml-configuring-transform.html[Transforming Data With Script Fields].
|
2017-05-15 12:30:30 -04:00
|
|
|
|
2017-04-10 11:59:27 -04:00
|
|
|
`scroll_size`::
|
2017-04-27 14:17:06 -04:00
|
|
|
(unsigned integer) The `size` parameter that is used in {es} searches.
|
2017-04-10 11:59:27 -04:00
|
|
|
The default value is `1000`.
|
|
|
|
|
2017-05-08 09:53:04 -04:00
|
|
|
`types`::
|
2018-03-07 16:53:49 -05:00
|
|
|
(array) A list of types to search for within the specified indices. For
|
|
|
|
example: `[]`. This property is provided for backwards compatibility with
|
|
|
|
releases earlier than 6.0.0. For more information, see <<removal-of-types>>.
|
2017-04-26 13:05:27 -04:00
|
|
|
|
2018-11-15 14:32:45 -05:00
|
|
|
`delayed_data_check_config`::
|
2018-12-18 20:14:18 -05:00
|
|
|
(object) Specifies whether the data feed checks for missing data and
|
|
|
|
and the size of the window. For example:
|
|
|
|
`{"enabled": true, "check_window": "1h"}` See
|
|
|
|
<<ml-datafeed-delayed-data-check-config>>.
|
2018-11-15 14:32:45 -05:00
|
|
|
|
2017-04-26 13:05:27 -04:00
|
|
|
[[ml-datafeed-chunking-config]]
|
2017-06-06 16:42:47 -04:00
|
|
|
==== Chunking Configuration Objects
|
2017-04-26 13:05:27 -04:00
|
|
|
|
2017-05-02 15:45:42 -04:00
|
|
|
{dfeeds-cap} might be required to search over long time periods, for several months
|
2017-04-27 13:51:48 -04:00
|
|
|
or years. This search is split into time chunks in order to ensure the load
|
|
|
|
on {es} is managed. Chunking configuration controls how the size of these time
|
|
|
|
chunks are calculated and is an advanced configuration option.
|
|
|
|
|
2017-04-26 13:05:27 -04:00
|
|
|
A chunking configuration object has the following properties:
|
|
|
|
|
2017-05-08 09:53:04 -04:00
|
|
|
`mode`::
|
2017-04-26 14:18:51 -04:00
|
|
|
There are three available modes: +
|
2017-04-27 14:17:06 -04:00
|
|
|
`auto`::: The chunk size will be dynamically calculated. This is the default
|
2017-04-27 13:51:48 -04:00
|
|
|
and recommended value.
|
2017-04-26 14:18:51 -04:00
|
|
|
`manual`::: Chunking will be applied according to the specified `time_span`.
|
|
|
|
`off`::: No chunking will be applied.
|
2017-04-26 13:05:27 -04:00
|
|
|
|
|
|
|
`time_span`::
|
|
|
|
(time units) The time span that each search will be querying.
|
|
|
|
This setting is only applicable when the mode is set to `manual`.
|
2017-05-15 12:30:30 -04:00
|
|
|
For example: `3h`.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2018-11-15 14:32:45 -05:00
|
|
|
[[ml-datafeed-delayed-data-check-config]]
|
|
|
|
==== Delayed Data Check Configuration Objects
|
|
|
|
|
|
|
|
The {dfeed} can optionally search over indices that have already been read in
|
|
|
|
an effort to find if any data has since been added to the index. If missing data
|
|
|
|
is found, it is a good indication that the `query_delay` option is set too low and
|
2018-12-18 20:14:18 -05:00
|
|
|
the data is being indexed after the {dfeed} has passed that moment in time. See
|
|
|
|
{stack-ov}/ml-delayed-data-detection.html[Working with delayed data].
|
2018-11-15 14:32:45 -05:00
|
|
|
|
|
|
|
This check only runs on real-time {dfeeds}
|
|
|
|
|
|
|
|
The configuration object has the following properties:
|
|
|
|
|
|
|
|
`enabled`::
|
|
|
|
(boolean) Should the {dfeed} periodically check for data being indexed after reading.
|
|
|
|
Defaults to `true`
|
|
|
|
|
|
|
|
`check_window`::
|
|
|
|
(time units) The window of time before the latest finalized bucket that should be searched
|
|
|
|
for late data. Defaults to `null` which causes an appropriate `check_window` to be calculated
|
|
|
|
when the real-time {dfeed} runs.
|
2018-11-19 09:03:34 -05:00
|
|
|
The default `check_window` span calculation is the max between `2h` or `8 * bucket_span`.
|
2018-11-15 14:32:45 -05:00
|
|
|
|
2017-04-11 21:52:47 -04:00
|
|
|
[float]
|
2017-04-10 19:14:26 -04:00
|
|
|
[[ml-datafeed-counts]]
|
2017-05-02 15:45:42 -04:00
|
|
|
==== {dfeed-cap} Counts
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-05-02 15:45:42 -04:00
|
|
|
The get {dfeed} statistics API provides information about the operational
|
2018-02-19 14:48:09 -05:00
|
|
|
progress of a {dfeed}. All of these properties are informational; you cannot
|
|
|
|
update their values:
|
2017-04-10 11:59:27 -04:00
|
|
|
|
2017-04-27 13:51:48 -04:00
|
|
|
`assignment_explanation`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(string) For started {dfeeds} only, contains messages relating to the
|
2017-04-27 14:17:06 -04:00
|
|
|
selection of a node.
|
2017-04-11 21:52:47 -04:00
|
|
|
|
|
|
|
`datafeed_id`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(string) A numerical character string that uniquely identifies the {dfeed}.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
|
|
|
`node`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(object) The node upon which the {dfeed} is started. The {dfeed} and job will
|
|
|
|
be on the same node.
|
2017-04-27 14:17:06 -04:00
|
|
|
`id`::: The unique identifier of the node. For example,
|
|
|
|
"0-o0tOoRTwKFZifatTWKNw".
|
2017-05-15 12:30:30 -04:00
|
|
|
`name`::: The node name. For example, `0-o0tOo`.
|
2017-04-27 14:17:06 -04:00
|
|
|
`ephemeral_id`::: The node ephemeral ID.
|
|
|
|
`transport_address`::: The host and port where transport HTTP connections are
|
2017-05-15 12:30:30 -04:00
|
|
|
accepted. For example, `127.0.0.1:9300`.
|
2017-08-11 04:00:33 -04:00
|
|
|
`attributes`::: For example, `{"ml.max_open_jobs": "10"}`.
|
2017-04-10 11:59:27 -04:00
|
|
|
|
|
|
|
`state`::
|
2017-05-02 15:45:42 -04:00
|
|
|
(string) The status of the {dfeed}, which can be one of the following values: +
|
|
|
|
`started`::: The {dfeed} is actively receiving data.
|
|
|
|
`stopped`::: The {dfeed} is stopped and will not receive data until it is
|
2017-04-27 14:17:06 -04:00
|
|
|
re-started.
|