# Can't rename index

**URL:** <https://discuss.elastic.co/t/cant-rename-index/229448>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 23, 2020, 11:11am UTC](https://discuss.elastic.co/t/cant-rename-index/229448 "2020-04-23T11:11:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![My\_Google\_Account](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/my_google_account/32/55185_2.png) [@My\_Google\_Account](https://discuss.elastic.co/u/My_Google_Account)\
**Post date:** [April 23, 2020, 11:11am UTC](https://discuss.elastic.co/t/cant-rename-index/229448/1 "2020-04-23T11:11:34Z")

</div>

Good day! i using elasticsearch & kibana & filebeat agent latest versions, and i can't setup index name, every time the index call "filebeat-7.6.2" and i don't understand why... i tried setup my agent from the documentation or elastic discus topics.... help please, my config filebeat is:

```auto
filebeat.inputs:
- type: log

# Change to true to enable this input configuration.
  enabled: true

# Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/*.log
  
filebeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: false

  # Period on which files under path should be checked for changes
  #reload.period: 10s

#Elasticsearch template setting

setup.template.settings:
  index.number_of_shards: 1
  #index.codec: best_compression
  #_source.enabled: false

#Kibana
setup.kibana:
  host: "192.168.237.128:5601"

#Elasticsearch output
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["192.168.237.128:9200"]
  output.elasticsearch.index:: "postgresql-fb-%{+yyyy.MM.dd}"
  setup.template.name: "postgresql-fb"
  setup.template.pattern: "postgresql-fb-*"
  setup.template.enabled: true

```

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [April 23, 2020, 11:24am UTC](https://discuss.elastic.co/t/cant-rename-index/229448/2 "2020-04-23T11:24:27Z")

</div>

@My_Google_Account, the

```auto
      setup.template.name: "postgresql-fb"
      setup.template.pattern: "postgresql-fb-*"
      setup.template.enabled: true

```

should be outside the `output.elasticsearch` config option.  
Also, line:  
`output.elasticsearch.index:: "postgresql-fb-%{+yyyy.MM.dd}"`  
should be  
`index:: "postgresql-fb-%{+yyyy.MM.dd}"`  
Can you try now?

---

<div class="post-metadata">

**Author:** ![My\_Google\_Account](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/my_google_account/32/55185_2.png) [@My\_Google\_Account](https://discuss.elastic.co/u/My_Google_Account)\
**Post date:** [April 23, 2020, 11:50am UTC](https://discuss.elastic.co/t/cant-rename-index/229448/3 "2020-04-23T11:50:58Z")

</div>

i tryed, but again, same name filebeat-7.6.2

---

<div class="post-metadata">

**Author:** ![My\_Google\_Account](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/my_google_account/32/55185_2.png) [@My\_Google\_Account](https://discuss.elastic.co/u/My_Google_Account)\
**Post date:** [April 24, 2020, 9:37am UTC](https://discuss.elastic.co/t/cant-rename-index/229448/4 "2020-04-24T09:37:59Z")

</div>

i saw in output after service started:  
INFO [index-management] idxmgmt/std.go:182 Set output.elasticsearch.index to 'filebeat-7.6.2' as ILM is enabled.

i tryed disable ILM ... but same name again .... filebeat-7.6.2 or created with this name filebeat-7.6.2-2020.04.23-000001

---

<div class="post-metadata">

**Author:** ![My\_Google\_Account](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/my_google_account/32/55185_2.png) [@My\_Google\_Account](https://discuss.elastic.co/u/My_Google_Account)\
**Post date:** [April 28, 2020, 6:37am UTC](https://discuss.elastic.co/t/cant-rename-index/229448/5 "2020-04-28T06:37:27Z")

</div>

i steel need help please!

---

<div class="post-metadata">

**Author:** ![canavell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/canavell/32/51916_2.png) [@canavell](https://discuss.elastic.co/u/canavell)\
**Post date:** [May 10, 2020, 3:39pm UTC](https://discuss.elastic.co/t/cant-rename-index/229448/6 "2020-05-10T15:39:08Z")

</div>

I can confirm this behaviour

---

<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:** [June 7, 2020, 3:39pm UTC](https://discuss.elastic.co/t/cant-rename-index/229448/7 "2020-06-07T15:39:13Z")

</div>

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