auto-follow.asciidoc 3.3 KB

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