limitations.asciidoc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. [role="xpack"]
  2. [[transform-limitations]]
  3. = {transform-cap} limitations
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>Limitations</titleabbrev>
  7. ++++
  8. The following limitations and known problems apply to the {version} release of
  9. the Elastic {transform} feature. The limitations are grouped into the following
  10. categories:
  11. * <<transform-config-limitations>> apply to the configuration process of the
  12. {transforms}.
  13. * <<transform-operational-limitations>> affect the behavior of the {transforms}
  14. that are running.
  15. * <<transform-ui-limitations>> only apply to {transforms} managed via the user
  16. interface.
  17. [discrete]
  18. [[transform-config-limitations]]
  19. == Configuration limitations
  20. [discrete]
  21. [[transforms-ccs-limitation]]
  22. === {transforms-cap} support {ccs} if the remote cluster is configured properly
  23. If you use <<modules-cross-cluster-search,{ccs}>>, the remote cluster must
  24. support the search and aggregations you use in your {transforms}.
  25. {transforms-cap} validate their configuration; if you use {ccs} and the
  26. validation fails, make sure that the remote cluster supports the query and
  27. aggregations you use.
  28. [discrete]
  29. [[transform-painless-limitation]]
  30. === Using scripts in {transforms}
  31. {transforms-cap} support scripting in every case when aggregations support them.
  32. However, there are certain factors you might want to consider when using scripts
  33. in {transforms}:
  34. * {transforms-cap} cannot deduce index mappings for output fields when the
  35. fields are created by a script. In this case, you might want to create the
  36. mappings of the destination index yourself prior to creating the transform.
  37. * Scripted fields may increase the runtime of the {transform}.
  38. * {transforms-cap} cannot optimize queries when you use scripts for all the
  39. groupings defined in `group_by`, you will receive a warning message when you
  40. use scripts this way.
  41. [discrete]
  42. [[transform-runtime-field-limitation]]
  43. === {transforms-cap} perform better on indexed fields
  44. {transforms-cap} sort data by a user-defined time field, which is frequently
  45. accessed. If the time field is a {ref}/runtime.html[runtime field], the
  46. performance impact of calculating field values at query time can significantly
  47. slow the {transform}. Use an indexed field as a time field when using
  48. {transforms}.
  49. [discrete]
  50. [[transform-scheduling-limitations]]
  51. === {ctransform-cap} scheduling limitations
  52. A {ctransform} periodically checks for changes to source data. The functionality
  53. of the scheduler is currently limited to a basic periodic timer which can be
  54. within the `frequency` range from 1s to 1h. The default is 1m. This is designed
  55. to run little and often. When choosing a `frequency` for this timer consider
  56. your ingest rate along with the impact that the {transform}
  57. search/index operations has other users in your cluster. Also note that retries
  58. occur at `frequency` interval.
  59. [discrete]
  60. [[transform-operational-limitations]]
  61. == Operational limitations
  62. [discrete]
  63. [[transform-aggresponse-limitations]]
  64. === Aggregation responses may be incompatible with destination index mappings
  65. When a pivot {transform} is first started, it will deduce the mappings
  66. required for the destination index. This process is based on the field types of
  67. the source index and the aggregations used. If the fields are derived from
  68. <<search-aggregations-metrics-scripted-metric-aggregation,`scripted_metrics`>>
  69. or <<search-aggregations-pipeline-bucket-script-aggregation,`bucket_scripts`>>,
  70. <<dynamic-mapping,dynamic mappings>> will be used. In some instances the
  71. deduced mappings may be incompatible with the actual data. For example, numeric
  72. overflows might occur or dynamically mapped fields might contain both numbers
  73. and strings. Please check {es} logs if you think this may have occurred.
  74. You can view the deduced mappings by using the
  75. <<preview-transform,preview transform API>>.
  76. See the `generated_dest_index` object in the API response.
  77. If it's required, you may define custom mappings prior to starting the
  78. {transform} by creating a custom destination index using the
  79. <<indices-create-index,create index API>>.
  80. As deduced mappings cannot be overwritten by an index template, use the create
  81. index API to define custom mappings. The index templates only apply to fields
  82. derived from scripts that use dynamic mappings.
  83. [discrete]
  84. [[transform-batch-limitations]]
  85. === Batch {transforms} may not account for changed documents
  86. A batch {transform} uses a
  87. <<search-aggregations-bucket-composite-aggregation,composite aggregation>>
  88. which allows efficient pagination through all buckets. Composite aggregations
  89. do not yet support a search context, therefore if the source data is changed
  90. (deleted, updated, added) while the batch {dataframe} is in progress, then the
  91. results may not include these changes.
  92. [discrete]
  93. [[transform-consistency-limitations]]
  94. === {ctransform-cap} consistency does not account for deleted or updated documents
  95. While the process for {transforms} allows the continual recalculation of the
  96. {transform} as new data is being ingested, it does also have some limitations.
  97. Changed entities will only be identified if their time field has also been
  98. updated and falls within the range of the action to check for changes. This has
  99. been designed in principle for, and is suited to, the use case where new data is
  100. given a timestamp for the time of ingest.
  101. If the indices that fall within the scope of the source index pattern are
  102. removed, for example when deleting historical time-based indices, then the
  103. composite aggregation performed in consecutive checkpoint processing will search
  104. over different source data, and entities that only existed in the deleted index
  105. will not be removed from the {dataframe} destination index.
  106. Depending on your use case, you may wish to recreate the {transform} entirely
  107. after deletions. Alternatively, if your use case is tolerant to historical
  108. archiving, you may wish to include a max ingest timestamp in your aggregation.
  109. This will allow you to exclude results that have not been recently updated when
  110. viewing the destination index.
  111. [discrete]
  112. [[transform-deletion-limitations]]
  113. === Deleting a {transform} does not delete the destination index or {kib} index pattern
  114. When deleting a {transform} using `DELETE _transform/index`
  115. neither the destination index nor the {kib} index pattern, should one have been
  116. created, are deleted. These objects must be deleted separately.
  117. [discrete]
  118. [[transform-aggregation-page-limitations]]
  119. === Handling dynamic adjustment of aggregation page size
  120. During the development of {transforms}, control was favoured over performance.
  121. In the design considerations, it is preferred for the {transform} to take longer
  122. to complete quietly in the background rather than to finish quickly and take
  123. precedence in resource consumption.
  124. Composite aggregations are well suited for high cardinality data enabling
  125. pagination through results. If a <<circuit-breaker,circuit breaker>> memory
  126. exception occurs when performing the composite aggregated search then we try
  127. again reducing the number of buckets requested. This circuit breaker is
  128. calculated based upon all activity within the cluster, not just activity from
  129. {transforms}, so it therefore may only be a temporary resource
  130. availability issue.
  131. For a batch {transform}, the number of buckets requested is only ever adjusted
  132. downwards. The lowering of value may result in a longer duration for the
  133. {transform} checkpoint to complete. For {ctransforms}, the number of buckets
  134. requested is reset back to its default at the start of every checkpoint and it
  135. is possible for circuit breaker exceptions to occur repeatedly in the {es} logs.
  136. The {transform} retrieves data in batches which means it calculates several
  137. buckets at once. Per default this is 500 buckets per search/index operation. The
  138. default can be changed using `max_page_search_size` and the minimum value is 10.
  139. If failures still occur once the number of buckets requested has been reduced to
  140. its minimum, then the {transform} will be set to a failed state.
  141. [discrete]
  142. [[transform-dynamic-adjustments-limitations]]
  143. === Handling dynamic adjustments for many terms
  144. For each checkpoint, entities are identified that have changed since the last
  145. time the check was performed. This list of changed entities is supplied as a
  146. <<query-dsl-terms-query,terms query>> to the {transform} composite aggregation,
  147. one page at a time. Then updates are applied to the destination index for each
  148. page of entities.
  149. The page `size` is defined by `max_page_search_size` which is also used to
  150. define the number of buckets returned by the composite aggregation search. The
  151. default value is 500, the minimum is 10.
  152. The index setting <<dynamic-index-settings,`index.max_terms_count`>> defines
  153. the maximum number of terms that can be used in a terms query. The default value
  154. is 65536. If `max_page_search_size` exceeds `index.max_terms_count` the
  155. {transform} will fail.
  156. Using smaller values for `max_page_search_size` may result in a longer duration
  157. for the {transform} checkpoint to complete.
  158. [discrete]
  159. [[transform-failed-limitations]]
  160. === Handling of failed {transforms}
  161. Failed {transforms} remain as a persistent task and should be handled
  162. appropriately, either by deleting it or by resolving the root cause of the
  163. failure and re-starting.
  164. When using the API to delete a failed {transform}, first stop it using
  165. `_stop?force=true`, then delete it.
  166. [discrete]
  167. [[transform-availability-limitations]]
  168. === {ctransforms-cap} may give incorrect results if documents are not yet available to search
  169. After a document is indexed, there is a very small delay until it is available
  170. to search.
  171. A {ctransform} periodically checks for changed entities between the time since
  172. it last checked and `now` minus `sync.time.delay`. This time window moves
  173. without overlapping. If the timestamp of a recently indexed document falls
  174. within this time window but this document is not yet available to search then
  175. this entity will not be updated.
  176. If using a `sync.time.field` that represents the data ingest time and using a
  177. zero second or very small `sync.time.delay`, then it is more likely that this
  178. issue will occur.
  179. [discrete]
  180. [[transform-date-nanos]]
  181. === Support for date nanoseconds data type
  182. If your data uses the <<date_nanos,date nanosecond data type>>, aggregations
  183. are nonetheless on millisecond resolution. This limitation also affects the
  184. aggregations in your {transforms}.
  185. [discrete]
  186. [[transform-data-streams-destination]]
  187. === Data streams as destination indices are not supported
  188. {transforms-cap} update data in the destination index which requires writing
  189. into the destination. <<data-streams>> are designed to be append-only, which
  190. means you cannot send update or delete requests directly to a data stream. For
  191. this reason, data streams are not supported as destination indices for
  192. {transforms}.
  193. [discrete]
  194. [[transform-ilm-destination]]
  195. === ILM as destination index may cause duplicated documents
  196. <<index-lifecycle-management,ILM>> is not recommended to use as a {transform}
  197. destination index. {transforms-cap} update documents in the current destination,
  198. and cannot delete documents in the indices previously used by ILM. This may lead
  199. to duplicated documents when you use {transforms} combined with ILM in case of a
  200. rollover.
  201. If you use ILM to have time-based indices, please consider using the
  202. <<date-index-name-processor>> instead. The processor works without duplicated
  203. documents if your {transform} contains a `group_by` based on `date_histogram`.
  204. [discrete]
  205. [[transform-ui-limitations]]
  206. == Limitations in {kib}
  207. [discrete]
  208. [[transform-space-limitations]]
  209. === {transforms-cap} are visible in all {kib} spaces
  210. {kibana-ref}/xpack-spaces.html[Spaces] enable you to organize your source and
  211. destination indices and other saved objects in {kib} and to see only the objects
  212. that belong to your space. However, this limited scope does not apply to
  213. {transforms}; they are visible in all spaces.
  214. [discrete]
  215. [[transform-kibana-limitations]]
  216. === Up to 1,000 {transforms} are listed in {kib}
  217. The {transforms} management page in {kib} lists up to 1000 {transforms}.
  218. [discrete]
  219. [[transform-ui-support]]
  220. === {kib} might not support every {transform} configuration option
  221. There might be configuration options available via the {transform} APIs that are
  222. not supported in {kib}. For an exhaustive list of configuration options, refer
  223. to the <<transform-apis,documentation>>.