# Elasticsearch remote cluster authentication mapping

**URL:** <https://discuss.elastic.co/t/elasticsearch-remote-cluster-authentication-mapping/263057>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [February 3, 2021, 2:21am UTC](https://discuss.elastic.co/t/elasticsearch-remote-cluster-authentication-mapping/263057 "2021-02-03T02:21:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xxlaila](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xxlaila/32/81630_2.png) [@xxlaila](https://discuss.elastic.co/u/xxlaila)\
**Post date:** [February 3, 2021, 2:21am UTC](https://discuss.elastic.co/t/elasticsearch-remote-cluster-authentication-mapping/263057/1 "2021-02-03T02:21:08Z")

</div>

### Elasticsearch did a cross-cluster mapping

There is no problem in creating a new user to get cross-cluster data, but it prompts 404 when getting mapping

#### Execute statement:

```auto
curl -H "Content-Type: application/json" -XGET -u "user:user" "http://1.1.1.1:93300/user-test1:prd-zhangsan-2021.02.01/_mapping"

```

## The error message is as follows

```auto
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [user-test1:prd-zhangsan-2021.02.01]","index_uuid":"_na_" ,"resource.type":"index_or_alias","resource.id":"user-test1:prd-zhangsan-2021.02.01","index":"user-test1:prd-zhangsan-2021.02.01"}] ,"type":"index_not_found_exception","reason":"no such index [user-test1:prd-zhangsan-2021.02.01]","index_uuid":"_na_","resource.type":"index_or_alias", "resource.id":"user-test1:prd-zhangsan-2021.02.01","index":"user-test1:prd-zhangsan-2021.02.01"},"status":404}

```

Mapping can be obtained by canceling the cluster name [user-test1]. The mapping with the cluster name [user-test1] cannot be obtained. You can't get it even if you use a super account. Please tell me how to configure the cross-cluster search, it is normal when getting the mapping

---

<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:** [March 3, 2021, 2:21am UTC](https://discuss.elastic.co/t/elasticsearch-remote-cluster-authentication-mapping/263057/2 "2021-03-03T02:21:19Z")

</div>

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