# Auto follow hidden index?

**URL:** <https://discuss.elastic.co/t/auto-follow-hidden-index/318173>\
**Category:** Elasticsearch\
**Tags:** ccr-cross-cluster-replication\
**Created:** [November 4, 2022, 8:39am UTC](https://discuss.elastic.co/t/auto-follow-hidden-index/318173 "2022-11-04T08:39:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BobDobelina](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@BobDobelina](https://discuss.elastic.co/u/BobDobelina)\
**Post date:** [November 4, 2022, 8:39am UTC](https://discuss.elastic.co/t/auto-follow-hidden-index/318173/1 "2022-11-04T08:39:25Z")

</div>

Hi All,

I am trying to create an auto-follow pattern for a hidden index.

For example the agent metrics.

## .ds-metrics-elastic\_agent.filebeat-default-2022.08.11-000001

I have tried these 2 patterns

```auto
PUT /_ccr/auto_follow/ds-metrics
{
  "remote_cluster": "CLUSTER1",
  "leader_index_patterns": [
    ".ds-metrics-*"
  ],
  "follow_index_pattern": "cl1-{{leader_index}}"
}

```

```auto
PUT /_ccr/auto_follow/ds-metrics
{
  "remote_cluster": "CLUSTER1",
  "leader_index_patterns": [
    "*ds-metrics-*"
  ],
  "follow_index_pattern": "cl1-{{leader_index}}"
}

```

But both attempts do not result in auto follow index being generated.

Does anyone know how to create such a pattern for a hidden index?

Any help would be appreciated.

Regards,

Bob

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 2, 2022, 8:40am UTC](https://discuss.elastic.co/t/auto-follow-hidden-index/318173/2 "2022-12-02T08:40:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
