auto-follow.asciidoc 1.5 KB

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