Skip to content

[Transform] Correct stale facts in the transform docs - #9221

Open
prwhelan wants to merge 5 commits into
elastic:mainfrom
prwhelan:transform-docs-fixes
Open

prwhelan wants to merge 5 commits into
elastic:mainfrom
prwhelan:transform-docs-fixes

Conversation

@prwhelan

@prwhelan prwhelan commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

This is a collection of changes to clarify some assumptions about transforms that have changed over the years.

  • max_page_search_size defaults to 500 for pivot and 5000 for latest, and resets to the configured value after each checkpoint
  • failure retries use exponential backoff; document num_failure_retries, unattended, and 9.6+ retry of authorization errors
  • destination privileges list only what each case requires
  • delete_dest_index and force delete have since come into existence
  • CPS default scope for transforms created with an Elastic Cloud API key
  • scope stack-only content with applies_to
  • top_metrics 9.6+ output, example and callout fixes, links and badges
  • misc editing

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No

Tool(s) and model(s) used: Claude Code, claude-opus-5-5

I had claude go through the transform docs and categorize statements as assertions and assumptions, and then I selected some and had claude spin up a 9.7.0-SNAPSHOT cluster to verify or state their inaccuracies.

- max_page_search_size defaults to 500 for pivot and 5000 for latest, and
  resets to the configured value after each checkpoint
- failure retries use exponential backoff; document num_failure_retries,
  unattended, and 9.6+ retry of authorization errors
- destination privileges list only what each case requires
- delete_dest_index and force delete
- CPS default scope for transforms created with an Elastic Cloud API key
- scope stack-only content with applies_to; serverless minimum frequency
- top_metrics 9.6+ output, example and callout fixes, links and badges
@prwhelan
prwhelan requested review from a team as code owners November 4, 2026 18:50
@prwhelan prwhelan added documentation Improvements or additions to documentation ml labels Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Docs review summary

No actionable issues found in the changed lines.

Review coverage
  • Content type: mix of overview, reference, and how-to pages in the transforms section. The edits fit each page's existing structure.
  • Checked: user focus, technical accuracy, applicability, maintainability, language, and style.
  • Not checked: the new behavior claims (retry backoff, max_page_search_size defaults, 9.6+ top_metrics output, CPS default scope for {{ecloud}} API keys). The PR description says they were checked against a 9.7.0-SNAPSHOT cluster, and no code PR is linked to compare against, so an SME must confirm the version scoping. UI labels: not verified.

Generated from Docs review agent · ◷

Was this review helpful? When the PR closes, add the label ai-review:helpful or ai-review:unhelpful to it.

@alexandra5000 alexandra5000 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Thanks for adding this! A couple of things:

The PR description says the facts were verified on a 9.7.0-SNAPSHOT cluster. Since these docs are cumulative from 9.0, anything that changed along the way (point in time by default, the 5000 latest default, destination privileges, retry backoff) should be checked against earlier minors or tagged. I left questions on the ones I could tell were unscoped.

Also, transform-setup.md line 76 still says the Stack Monitoring feature must be visible, which now contradicts the stack-only scoping on lines 52 and 63.

### Batch transforms may not account for changed documents [transform-batch-limitations]

A batch transform uses a [composite aggregation](elasticsearch://reference/aggregations/search-aggregations-bucket-composite-aggregation.md) which allows efficient pagination through all buckets. Composite aggregations do not yet support a search context, therefore if the source data is changed (deleted, updated, added) while the batch {{dataframe}} is in progress, then the results may not include these changes.
A batch transform uses a [composite aggregation](elasticsearch://reference/aggregations/search-aggregations-bucket-composite-aggregation.md) which allows efficient pagination through all buckets. By default, transforms page through the source with a [point in time]({{es-apis}}operation/operation-open-point-in-time), which gives the search a consistent view of the data. Point in time is not used when `use_point_in_time` is set to `false`, when the source includes remote clusters, or when {{cps}} is enabled. When point in time is turned off, if the source data is changed (deleted, updated, added) while the batch {{dataframe}} is in progress, then the results might not include these changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the heading ("Batch transforms may not account for changed documents") now contradicts this paragraph, since with point in time on by default batch transforms do get a consistent view. Maybe reword the heading so the limitation applies when point in time isn't used? Also, is point in time the default across all 9.x versions? If that changed along the way, this needs a version tag.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this was true since 9.0 (and 8.19)

For a batch transform, the number of buckets requested is only ever adjusted downwards. The lowering of value might result in a longer duration for the transform checkpoint to complete. For {{ctransforms}}, the number of buckets requested is reset back to the configured `max_page_search_size` when a checkpoint completes.

The transform retrieves data in batches which means it calculates several buckets at once. Per default this is 500 buckets per search/index operation. The default can be changed using `max_page_search_size` and the minimum value is 10. If failures still occur once the number of buckets requested has been reduced to its minimum, then the transform will be set to a failed state.
The transform retrieves data in batches which means it calculates several buckets at once. By default, this is 500 buckets per search/index operation for `pivot` transforms and 5000 for `latest` transforms. You can change the default using `max_page_search_size`. The minimum value is 10 and the maximum is 65,536. If failures still occur once the number of buckets requested has been reduced to its minimum, then the transform will be set to a failed state, unless it runs in `unattended` mode, in which case it keeps retrying.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the 5000 default for latest transforms apply from 9.0, or was it introduced later? If later, it needs a version tag. Same on line 98 and in transform-scale.md line 79.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah the default was always 5000. my guess is we just forgot to update the docs when we introduced latest.

* `transform_admin` built-in role or `manage_transform` cluster privileges,
* `read` and `view_index_metadata` index privileges on source indices, and
* `create_index`, `index`, `manage`, and `read` index privileges on destination indices. If a `retention_policy` is configured, `delete` index privilege is also required on the destination index.
* `read` and `index` index privileges on destination indices. The following privileges are also required on destination indices in these cases:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did these destination privilege requirements hold on 9.0–9.5, or did the behavior change in a later release? The old text required create_index, index, manage, and read unconditionally, so if something changed in a specific version this needs tagging. If the old text was just wrong, this is fine as is. Just wondering 🙂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they've always been like this, but i'm not sure if this is more helpful to users to break it out like this? i'm trying to express that they only need to assign those privileges if they are configuring that transform with features that require those privileges, if that makes sense

@prwhelan

Copy link
Copy Markdown
Member Author

Hey! Thanks for adding this! A couple of things:

The PR description says the facts were verified on a 9.7.0-SNAPSHOT cluster. Since these docs are cumulative from 9.0, anything that changed along the way (point in time by default, the 5000 latest default, destination privileges, retry backoff) should be checked against earlier minors or tagged. I left questions on the ones I could tell were unscoped.

Also, transform-setup.md line 76 still says the Stack Monitoring feature must be visible, which now contradicts the stack-only scoping on lines 52 and 63.

Do I have to do anything specifically for tagging previous versions? If something was introduced in 9.5 (for example), should I break that out into its own review and remove it from this review?

prwhelan and others added 3 commits November 13, 2026 13:35
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
@leemthompo

Copy link
Copy Markdown
Member

This branch was successfully deployed

1 active deployment
docs-preview — 0a6ca9e6 Deployed Nov 16, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants