start-transform.asciidoc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[start-transform]]
  4. === Start {transforms} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Start {transforms}</titleabbrev>
  8. ++++
  9. Starts one or more {transforms}.
  10. beta[]
  11. [[start-transform-request]]
  12. ==== {api-request-title}
  13. `POST _transform/<transform_id>/_start`
  14. [[start-transform-prereqs]]
  15. ==== {api-prereq-title}
  16. * If the {es} {security-features} are enabled, you must have
  17. `manage_data_frame_transforms` cluster privileges to use this API. You must also
  18. have `view_index_metadata` privileges on the source index for the
  19. {transform}. For more information,
  20. see <<security-privileges>> and <<built-in-roles>>.
  21. [[start-transform-desc]]
  22. ==== {api-description-title}
  23. When you start a {transform}, it creates the destination index if it
  24. does not already exist. The `number_of_shards` is set to `1` and the
  25. `auto_expand_replicas` is set to `0-1`.
  26. The {transform} deduces the mapping definitions from the source indices. For
  27. scripted fields, it uses <<dynamic-mapping,dynamic mappings>>. If a field in the
  28. destination index is created by `scripted_metric` or `bucket_script`
  29. aggregations, the {transform} uses dynamic mappings unless a template exists or
  30. the destination index already exists. Mapping definitions in the destination
  31. index take precedence over dynamic mappings and templates.
  32. When the {transform} starts, a series of validations occur to ensure
  33. its success. If you deferred validation when you created the
  34. {transform}, they occur when you start the {transform}--with the
  35. exception of privilege checks. When {es} {security-features} are enabled, the
  36. {transform} remembers which roles the user that created it had at the
  37. time of creation and uses those same roles. If those roles do not have the
  38. required privileges on the source and destination indices, the
  39. {transform} fails when it attempts unauthorized operations.
  40. [[start-transform-path-parms]]
  41. ==== {api-path-parms-title}
  42. `<transform_id>`::
  43. (Required, string) Identifier for the {transform}. This identifier
  44. can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and
  45. underscores. It must start and end with alphanumeric characters.
  46. [[start-transform-example]]
  47. ==== {api-examples-title}
  48. [source,console]
  49. --------------------------------------------------
  50. POST _transform/ecommerce_transform/_start
  51. --------------------------------------------------
  52. // TEST[skip:set up kibana samples]
  53. When the {transform} starts, you receive the following results:
  54. [source,console-result]
  55. ----
  56. {
  57. "acknowledged" : true
  58. }
  59. ----