auto-follow.asciidoc 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-auto-follow]]
  4. === Manage auto-follow patterns
  5. To replicate time series indices, you configure an auto-follow pattern so that
  6. each new index in the series is replicated automatically. Whenever the name of
  7. a new index on the remote cluster matches the auto-follow pattern, a
  8. corresponding follower index is added to the local cluster.
  9. Auto-follow patterns are especially useful with
  10. <<index-lifecycle-management,{ilm-cap}>>, which might continually create
  11. new indices on the cluster containing the leader index.
  12. [[ccr-access-ccr-auto-follow]]
  13. To start using {ccr} auto-follow patterns, access {kib} and go to
  14. *Management > Stack Management*. In the side navigation, select
  15. *Cross-Cluster Replication* and choose the *Auto-follow patterns* tab
  16. [[ccr-auto-follow-create]]
  17. ==== Create auto-follow patterns
  18. When you <<ccr-getting-started-auto-follow,create an auto-follow pattern>>,
  19. you are configuring a collection of patterns against a single remote cluster.
  20. When an index is created in the remote cluster with a name that matches one of
  21. the patterns in the collection, a follower index is configured in the local
  22. cluster. The follower index uses the new index as its leader index.
  23. [%collapsible]
  24. .Use the API
  25. ====
  26. Use the <<ccr-put-auto-follow-pattern,create auto-follow pattern API>> to add a
  27. new auto-follow pattern configuration.
  28. ====
  29. [[ccr-auto-follow-retrieve]]
  30. ==== Retrieve auto-follow patterns
  31. To view existing auto-follow patterns and make changes to the backing
  32. patterns, <<ccr-access-ccr-auto-follow,access {kib}>> on your _remote_ cluster.
  33. Select the auto-follow pattern that you want to view details about. From there,
  34. you can make changes to the auto-follow pattern. You can also view your
  35. follower indices included in the auto-follow pattern.
  36. [%collapsible]
  37. .Use the API
  38. ====
  39. Use the <<ccr-get-auto-follow-pattern,get auto-follow pattern API>> to inspect
  40. all configured auto-follow pattern collections.
  41. ====
  42. [[ccr-auto-follow-pause]]
  43. ==== Pause and resume auto-follow patterns
  44. To pause and resume replication of auto-follow pattern collections,
  45. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  46. and pause replication.
  47. To resume replication, select the pattern and choose
  48. *Manage pattern > Resume replication*.
  49. [%collapsible]
  50. .Use the API
  51. ====
  52. Use the <<ccr-pause-auto-follow-pattern,pause auto-follow pattern API>> to
  53. pause auto-follow patterns.
  54. Use the <<ccr-resume-auto-follow-pattern,resume auto-follow pattern API>> to
  55. resume auto-follow patterns.
  56. ====
  57. [[ccr-auto-follow-delete]]
  58. ==== Delete auto-follow patterns
  59. To delete an auto-follow pattern collection,
  60. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  61. and pause replication.
  62. When the pattern status changes to Paused, choose
  63. *Manage pattern > Delete pattern*.
  64. [%collapsible]
  65. .Use the API
  66. ====
  67. Use the <<ccr-delete-auto-follow-pattern,delete auto-follow pattern API>> to
  68. delete a configured auto-follow pattern collection.
  69. ====