auto-follow.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-auto-follow]]
  4. === Automatically following indices
  5. In time series use cases where you want to follow new indices that are
  6. periodically created (such as daily Beats indices), manually configuring follower
  7. indices for each new leader index can be an operational burden. The auto-follow
  8. functionality in {ccr} is aimed at easing this burden. With the auto-follow
  9. functionality, you can specify that new indices in a remote cluster that have a
  10. name that matches a pattern are automatically followed.
  11. ==== Managing auto-follow patterns
  12. You can add a new auto-follow pattern configuration with the
  13. {ref}/ccr-put-auto-follow-pattern.html[create auto-follow pattern API]. When you create
  14. a new auto-follow pattern configuration, you are configuring a collection of
  15. patterns against a single remote cluster. Any time a new index with a name that
  16. matches one of the patterns in the collection is created in the remote cluster,
  17. a follower index is configured in the local cluster. The follower index uses the
  18. new index as its leader index.
  19. You can inspect all configured auto-follow pattern collections with the
  20. {ref}/ccr-get-auto-follow-pattern.html[get auto-follow pattern API]. To delete a
  21. configured auto-follow pattern collection, use the
  22. {ref}/ccr-delete-auto-follow-pattern.html[delete auto-follow pattern API].
  23. Since auto-follow functionality is handled automatically in the background on
  24. your behalf, error reporting is done through logs on the elected master node
  25. and through the {ref}/ccr-get-stats.html[{ccr} stats API].