1
0

limitations.asciidoc 13 KB

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