# (another) Custome Index Name for Filebeat

**URL:** https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283
**Category:** Beats
**Tags:** filebeat
**Created:** [January 2, 2022, 3:03am UTC](https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283 "2022-01-02T03:03:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)
#### Post date: [January 2, 2022, 3:03am UTC](https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283/1 "2022-01-02T03:03:21Z")

</div>

First: Happy New Year!

Second: I have seen various other posts on this topic, but they always seem to timeout before getting to an answer.

I an running ELK 7.13.4  
I have an Elasticsearch that ingests data from multiple filbeats running on different servers. The logs are not similar from server to server, so I'd like to have separate indices for each server.

Oh, yeah, I also need ILM to age the logs and eventually remove them.

In a filebeat yaml, I have added  
`output.elasticsearch.index: "customename-%{+yyyy.MM.dd}"`

and

```auto
setup:
  template:
    name: "customname"
    pattern: "customname-*"

```

I restart filebeat, and it keeps writing to the old existing filebeat index, the new index is not created.

What have I forgotten to do?

Thanks!

Michael

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [January 3, 2022, 12:19pm UTC](https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283/2 "2022-01-03T12:19:07Z")

</div>

Have you disabled ILM loading? If not, you should set `setup.ilm.enabled: false`.

---

<div class="post-metadata">

### Author: ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)
#### Post date: [January 12, 2022, 8:44pm UTC](https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283/3 "2022-01-12T20:44:44Z")

</div>

Sorry, been off doing 1000 other things. I did try as you suggested and it made no difference. I think I have something else going on in the yaml configuration. At any rate, this was deprioritized so I have not gotten back to it. Thank you for responding, I do really appreciate it!

---

<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: [February 9, 2022, 10:44pm UTC](https://discuss.elastic.co/t/another-custome-index-name-for-filebeat/293283/4 "2022-02-09T22:44:56Z")

</div>

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