# Modify netflow index creation name

**URL:** <https://discuss.elastic.co/t/modify-netflow-index-creation-name/173185>\
**Category:** Elasticsearch\
**Created:** [March 20, 2019, 3:55pm UTC](https://discuss.elastic.co/t/modify-netflow-index-creation-name/173185 "2019-03-20T15:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryne\_Keel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryne_keel/32/42827_2.png) [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)\
**Post date:** [March 20, 2019, 3:55pm UTC](https://discuss.elastic.co/t/modify-netflow-index-creation-name/173185/1 "2019-03-20T15:55:42Z")

</div>

I am running into an issue where my netflow index template is called netflow, with index pattern netflow-\*. When a new index is created, it is called netflow-date.

I created a lifecycle rollover policy for this index template, but when I add the alias netflow-00001, I get the following error from the lifecycle policy:

illegal\_argument\_exception: index name [netflow-2019.03.20] does not match pattern '^.\*-\d+$'

I am trying to find out how to tell the system to name new index create with the netflow template to be named netflow-date-1 and also to make the aliases called netflow-date-1, so that the number increments each time the index is rolled over into an alias name.

Our netflow data is 200+GB per day generated from roughly 5TB of bandwidth

I found a file called /usr/share/logstash/modules/netflow/configuration/elasticsearch/netflow.json

I tried adding the alias to the end of the file, which doesn't seem to affect newly created or existing indecies. I also don't see anywhere in the file to modify the naming convention of the newly created index to be netflow-date-1

---

<div class="post-metadata">

**Author:** ![Ryne\_Keel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryne_keel/32/42827_2.png) [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)\
**Post date:** [March 22, 2019, 5:07pm UTC](https://discuss.elastic.co/t/modify-netflow-index-creation-name/173185/4 "2019-03-22T17:07:19Z")

</div>

My colleague looked through source code and found a variable that we were able to use in the logstash.yml file to solve the problem.

```
# ------------ Module Settings ---------------
modules:
  - name: netflow
    var.input.udp.port: "2055"
    var.kibana.host: "192.168.99.49:5601"
    var.elasticsearch.hosts: "192.168.50.240:9200"
    var.elasticsearch.index_suffix: "%{+YYYY.MM.dd}-1"

    var.elasticsearch.index_suffix: "%{+YYYY.MM.dd}-1"
```

---

<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:** [April 19, 2019, 5:07pm UTC](https://discuss.elastic.co/t/modify-netflow-index-creation-name/173185/5 "2019-04-19T17:07:22Z")

</div>

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