2019-07-05 07:34:05 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[start-dfanalytics]]
|
|
|
|
=== Start {dfanalytics-jobs} API
|
|
|
|
|
|
|
|
[subs="attributes"]
|
|
|
|
++++
|
|
|
|
<titleabbrev>Start {dfanalytics-jobs}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Starts a {dfanalytics-job}.
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
experimental[]
|
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
[[ml-start-dfanalytics-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`POST _ml/data_frame/analytics/<data_frame_analytics_id>/_start`
|
|
|
|
|
|
|
|
[[ml-start-dfanalytics-prereq]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
2020-01-09 04:44:07 -05:00
|
|
|
If the {es} {security-features} are enabled, you must have the following built-in roles and privileges:
|
|
|
|
|
|
|
|
* `machine_learning_admin`
|
|
|
|
* `kibana_user` (UI only)
|
|
|
|
|
|
|
|
|
|
|
|
* source index: `read`, `view_index_metadata`
|
|
|
|
* destination index: `read`, `create_index`, `manage` and `index`
|
|
|
|
* cluster: `monitor` (UI only)
|
|
|
|
|
|
|
|
For more information, see <<security-privileges>> and <<built-in-roles>>.
|
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`<data_frame_analytics_id>`::
|
2019-12-13 05:48:21 -05:00
|
|
|
(Required, string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics-define]
|
2019-07-10 20:58:17 -04:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`timeout`::
|
2019-12-13 05:48:21 -05:00
|
|
|
(Optional, <<time-units,time units>>)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=timeout-start]
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
The following example starts the `loganalytics` {dfanalytics-job}:
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2019-07-05 07:34:05 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
POST _ml/data_frame/analytics/loganalytics/_start
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:setup:logdata_job]
|
|
|
|
|
|
|
|
When the {dfanalytics-job} starts, you receive the following results:
|
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-07-05 07:34:05 -04:00
|
|
|
----
|
|
|
|
{
|
|
|
|
"acknowledged" : true
|
|
|
|
}
|
|
|
|
----
|