# Own index for ES

**URL:** <https://community.temporal.io/t/own-index-for-es/3081>\
**Category:** Community Support\
**Tags:** elasticsearch\
**Created:** [October 4, 2021, 1:20pm UTC](https://community.temporal.io/t/own-index-for-es/3081 "2021-10-04T13:20:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seryozhasa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@seryozhasa](https://community.temporal.io/u/seryozhasa)\
**Post date:** [October 4, 2021, 1:20pm UTC](https://community.temporal.io/t/own-index-for-es/3081/1 "2021-10-04T13:20:51Z")

</div>

Hello. I need create own index for ES, but i can’t undertand why my config is wrong. I recieve error:

> Unable to create file based dynamic config client, use no-op config client instead.",“error”:"failed to decode dynamic config yaml: unmarshal errors:\n line 38: cannot unmarshal !!map into dynamicconfig.constrainedValue

My full config

```auto
frontend.enableClientVersionCheck:
  - value: true
    constraints: {}
history.persistenceMaxQPS:
  - value: 3000
    constraints: {}
frontend.persistenceMaxQPS:
  - value: 3000
    constraints: {}
frontend.historyMgrNumConns:
  - value: 10
    constraints: {}
frontend.throttledLogRPS:
  - value: 20
    constraints: {}
history.historyMgrNumConns:
  - value: 50
    constraints: {}
history.defaultActivityRetryPolicy:
  - value:
      InitialIntervalInSeconds: 1
      MaximumIntervalCoefficient: 100.0
      BackoffCoefficient: 2.0
      MaximumAttempts: 0
history.defaultWorkflowRetryPolicy:
  - value:
      InitialIntervalInSeconds: 1
      MaximumIntervalCoefficient: 100.0
      BackoffCoefficient: 2.0
      MaximumAttempts: 0
system.advancedVisibilityWritingMode:
  - value: "on"
    constraints: {}
system.enableReadVisibilityFromES:
  - value: true
    constraints: {}
persistence:
  advancedVisibilityStore: es-visibility
  datastores:
    es-visibility:
      elasticsearch:
        version: "v7"
        url:
          scheme: "http"
          host: "elasticsearch:9200"
        indices:
          visibility: my_own_index_name

```

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [October 4, 2021, 4:33pm UTC](https://community.temporal.io/t/own-index-for-es/3081/2 "2021-10-04T16:33:40Z")

</div>

Which line is line 38?

---

<div class="post-metadata">

**Author:** ![seryozhasa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@seryozhasa](https://community.temporal.io/u/seryozhasa)\
**Post date:** [October 4, 2021, 5:11pm UTC](https://community.temporal.io/t/own-index-for-es/3081/3 "2021-10-04T17:11:41Z")

</div>

advancedVisibilityStore: es-visibility

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [October 4, 2021, 5:21pm UTC](https://community.temporal.io/t/own-index-for-es/3081/4 "2021-10-04T17:21:01Z")

</div>

> [@seryozhasa](#):
>
> ```auto
> persistence:
> advancedVisibilityStore: es-visibility
> datastores:
> es-visibility:
> elasticsearch:
> version: "v7"
> url:
> scheme: "http"
> host: "elasticsearch:9200"
> indices:
> visibility: my_own_index_name
> 
> ```

The section above should go to regular [config](https://github.com/temporalio/temporal/blob/master/config/development_es.yaml#L1) not dynamic [config](https://github.com/temporalio/temporal/blob/master/config/dynamicconfig/development_es.yaml).

---

<div class="post-metadata">

**Author:** ![seryozhasa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@seryozhasa](https://community.temporal.io/u/seryozhasa)\
**Post date:** [October 4, 2021, 5:43pm UTC](https://community.temporal.io/t/own-index-for-es/3081/5 "2021-10-04T17:43:39Z")

</div>

Can I do it vie environment variable?  
I tried to set “ES\_VIS\_INDEX = my\_own\_index\_name” in my docker container but ES index was still the default

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [October 4, 2021, 6:23pm UTC](https://community.temporal.io/t/own-index-for-es/3081/6 "2021-10-04T18:23:24Z")

</div>

Yes, `ES_VIS_INDEX` should work. How do you set it? The way it works is via [dockerize](https://github.com/temporalio/temporal/blob/master/docker/entrypoint.sh#L15) which use environment variables to generates config from [template](https://github.com/temporalio/temporal/blob/master/docker/config_template.yaml#L145).

So if you set it outside of docker container (command line or [docker-compose file](https://github.com/temporalio/docker-compose/blob/main/docker-compose-cas-es.yml#L34)) and use default Temporal server docker [image](https://hub.docker.com/repository/docker/temporalio/server), it should be applied.
