auto-follow.asciidoc 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. You can also create auto-follow patterns for data streams. When a new backing
  10. index is generated on a remote cluster, that index and its data stream are
  11. automatically followed if the data stream name matches an auto-follow
  12. pattern. If you create a data stream after creating the auto-follow pattern,
  13. all backing indices are followed automatically.
  14. The data streams replicated from a remote cluster by CCR are protected from
  15. local rollovers. The <<promote-data-stream-api,promote data stream API>>
  16. can be used to turn these data streams into regular data streams.
  17. Auto-follow patterns are especially useful with
  18. <<index-lifecycle-management,{ilm-cap}>>, which might continually create
  19. new indices on the cluster containing the leader index.
  20. [[ccr-access-ccr-auto-follow]]
  21. To start using {ccr} auto-follow patterns, access {kib} and go to
  22. *Management > Stack Management*. In the side navigation, select
  23. *Cross-Cluster Replication* and choose the *Auto-follow patterns* tab
  24. [[ccr-auto-follow-create]]
  25. ==== Create auto-follow patterns
  26. When you <<ccr-getting-started-auto-follow,create an auto-follow pattern>>,
  27. you are configuring a collection of patterns against a single remote cluster.
  28. When an index is created in the remote cluster with a name that matches one of
  29. the patterns in the collection, a follower index is configured in the local
  30. cluster. The follower index uses the new index as its leader index.
  31. [%collapsible]
  32. .Use the API
  33. ====
  34. Use the <<ccr-put-auto-follow-pattern,create auto-follow pattern API>> to add a
  35. new auto-follow pattern configuration.
  36. ====
  37. [[ccr-auto-follow-retrieve]]
  38. ==== Retrieve auto-follow patterns
  39. To view existing auto-follow patterns and make changes to the backing
  40. patterns, <<ccr-access-ccr-auto-follow,access {kib}>> on your _remote_ cluster.
  41. Select the auto-follow pattern that you want to view details about. From there,
  42. you can make changes to the auto-follow pattern. You can also view your
  43. follower indices included in the auto-follow pattern.
  44. [%collapsible]
  45. .Use the API
  46. ====
  47. Use the <<ccr-get-auto-follow-pattern,get auto-follow pattern API>> to inspect
  48. all configured auto-follow pattern collections.
  49. ====
  50. [[ccr-auto-follow-pause]]
  51. ==== Pause and resume auto-follow patterns
  52. To pause and resume replication of auto-follow pattern collections,
  53. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  54. and pause replication.
  55. To resume replication, select the pattern and choose
  56. *Manage pattern > Resume replication*.
  57. [%collapsible]
  58. .Use the API
  59. ====
  60. Use the <<ccr-pause-auto-follow-pattern,pause auto-follow pattern API>> to
  61. pause auto-follow patterns.
  62. Use the <<ccr-resume-auto-follow-pattern,resume auto-follow pattern API>> to
  63. resume auto-follow patterns.
  64. ====
  65. [[ccr-auto-follow-delete]]
  66. ==== Delete auto-follow patterns
  67. To delete an auto-follow pattern collection,
  68. <<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,
  69. and pause replication.
  70. When the pattern status changes to Paused, choose
  71. *Manage pattern > Delete pattern*.
  72. [%collapsible]
  73. .Use the API
  74. ====
  75. Use the <<ccr-delete-auto-follow-pattern,delete auto-follow pattern API>> to
  76. delete a configured auto-follow pattern collection.
  77. ====