# Can't modify the default index name

**URL:** <https://discuss.elastic.co/t/cant-modify-the-default-index-name/190000>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 11, 2019, 12:01pm UTC](https://discuss.elastic.co/t/cant-modify-the-default-index-name/190000 "2019-07-11T12:01:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)\
**Post date:** [July 11, 2019, 12:01pm UTC](https://discuss.elastic.co/t/cant-modify-the-default-index-name/190000/1 "2019-07-11T12:01:39Z")

</div>

Hi,

I am just trying to setup FileBeat to push logs from file to ElasticSearch Index. Here is my config. I'm expecting the data to be indexed to **dummy-2019.07.11** , but No matter what I change, Data is always being indexed to default index name **filebeat-7.2.0-2019.07.11-000001**. Could you please check and correct me If there is anything wrong in the below conf.

```
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /training/log/*

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.name: "dummy"
setup.template.pattern: "dummy-*"
setup.template.settings:
  index.number_of_shards: 1

setup.kibana:

output.elasticsearch:

  hosts: ["localhost:9500"]
  index: "dummy-%{+YYYY.MM.dd}"

  protocol: "http"
  username: "elastic"
  password: "changeme"

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
```

---

<div class="post-metadata">

**Author:** ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)\
**Post date:** [July 11, 2019, 12:39pm UTC](https://discuss.elastic.co/t/cant-modify-the-default-index-name/190000/2 "2019-07-11T12:39:45Z")

</div>

Added below to my config and it resolved the issue. By default it's **true**

`setup.ilm.enabled: false`

---

<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:** [August 8, 2019, 12:39pm UTC](https://discuss.elastic.co/t/cant-modify-the-default-index-name/190000/3 "2019-08-08T12:39:52Z")

</div>

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