| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | [role="xpack"][testenv="platinum"][[ccr-auto-follow]]=== Manage auto-follow patternsTo replicate time series indices, you configure an auto-follow pattern so thateach new index in the series is replicated automatically. Whenever the name ofa new index on the remote cluster matches the auto-follow pattern, acorresponding follower index is added to the local cluster.NOTE: Auto-follow patterns only match open indices on the remote cluster thathave all primary shards started. Auto-follow patterns do not match indices thatcan't be used for {ccr-init} such as <<open-index-api-desc,closed indices>> or<<searchable-snapshots,{search-snaps}>>. Avoid using an auto-follow patternthat matches indices with a <<index-block-settings, read or write block>>. Theseblocks prevent follower indices from replicating such indices.You can also create auto-follow patterns for data streams. When a new backingindex is generated on a remote cluster, that index and its data stream areautomatically followed if the data stream name matches an auto-followpattern. If you create a data stream after creating the auto-follow pattern,all backing indices are followed automatically.The data streams replicated from a remote cluster by CCR are protected fromlocal rollovers. The <<promote-data-stream-api,promote data stream API>>can be used to turn these data streams into regular data streams.Auto-follow patterns are especially useful with<<index-lifecycle-management,{ilm-cap}>>, which might continually createnew indices on the cluster containing the leader index.[[ccr-access-ccr-auto-follow]]To start using {ccr} auto-follow patterns, access {kib} and go to*Management > Stack Management*. In the side navigation, select*Cross-Cluster Replication* and choose the *Auto-follow patterns* tab[[ccr-auto-follow-create]]==== Create auto-follow patternsWhen you <<ccr-getting-started-auto-follow,create an auto-follow pattern>>,you are configuring a collection of patterns against a single remote cluster.When an index is created in the remote cluster with a name that matches one ofthe patterns in the collection, a follower index is configured in the localcluster. The follower index uses the new index as its leader index.[%collapsible].Use the API====Use the <<ccr-put-auto-follow-pattern,create auto-follow pattern API>> to add anew auto-follow pattern configuration.====[[ccr-auto-follow-retrieve]]==== Retrieve auto-follow patternsTo view existing auto-follow patterns and make changes to the backingpatterns, <<ccr-access-ccr-auto-follow,access {kib}>> on your _remote_ cluster.Select the auto-follow pattern that you want to view details about. From there,you can make changes to the auto-follow pattern. You can also view yourfollower indices included in the auto-follow pattern.[%collapsible].Use the API====Use the <<ccr-get-auto-follow-pattern,get auto-follow pattern API>> to inspectall configured auto-follow pattern collections.====[[ccr-auto-follow-pause]]==== Pause and resume auto-follow patternsTo pause and resume replication of auto-follow pattern collections,<<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,and pause replication.To resume replication, select the pattern and choose*Manage pattern > Resume replication*.[%collapsible].Use the API====Use the <<ccr-pause-auto-follow-pattern,pause auto-follow pattern API>> topause auto-follow patterns.Use the <<ccr-resume-auto-follow-pattern,resume auto-follow pattern API>> toresume auto-follow patterns.====[[ccr-auto-follow-delete]]==== Delete auto-follow patternsTo delete an auto-follow pattern collection,<<ccr-access-ccr-auto-follow,access {kib}>>, select the auto-follow pattern,and pause replication.When the pattern status changes to Paused, choose*Manage pattern > Delete pattern*.[%collapsible].Use the API====Use the <<ccr-delete-auto-follow-pattern,delete auto-follow pattern API>> todelete a configured auto-follow pattern collection.====
 |