2019-07-05 19:34:05 +08: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 23:26:31 +08:00
|
|
|
experimental[]
|
|
|
|
|
2019-07-05 19:34:05 +08: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}
|
|
|
|
|
|
|
|
* You must have `machine_learning_admin` built-in role to use this API. You must
|
|
|
|
also have `read` and `view_index_metadata` privileges on the source index and
|
|
|
|
`read`, `create_index`, and `index` privileges on the destination index. For
|
2019-10-05 07:10:26 +08:00
|
|
|
more information, see <<security-privileges>> and <<built-in-roles>>.
|
2019-07-05 19:34:05 +08:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2019-07-12 23:26:31 +08:00
|
|
|
`<data_frame_analytics_id>`::
|
2019-12-07 07:32:07 +08:00
|
|
|
(Required, string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics-define]
|
2019-07-11 08:58:17 +08:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
2019-07-12 23:26:31 +08:00
|
|
|
|
|
|
|
`timeout`::
|
|
|
|
(Optional, time) Controls the amount of time to wait until the
|
|
|
|
{dfanalytics-job} starts. The default value is 20 seconds.
|
2019-07-05 19:34:05 +08:00
|
|
|
|
|
|
|
[[ml-start-dfanalytics-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
The following example starts the `loganalytics` {dfanalytics-job}:
|
|
|
|
|
2019-09-09 22:45:37 +08:00
|
|
|
[source,console]
|
2019-07-05 19:34:05 +08: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 04:47:18 +08:00
|
|
|
[source,console-result]
|
2019-07-05 19:34:05 +08:00
|
|
|
----
|
|
|
|
{
|
|
|
|
"acknowledged" : true
|
|
|
|
}
|
|
|
|
----
|