# Lowercase index when created from fields

**URL:** <https://discuss.elastic.co/t/lowercase-index-when-created-from-fields/118893>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 7, 2018, 5:27pm UTC](https://discuss.elastic.co/t/lowercase-index-when-created-from-fields/118893 "2018-02-07T17:27:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dao](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@dao](https://discuss.elastic.co/u/dao)\
**Post date:** [February 7, 2018, 5:27pm UTC](https://discuss.elastic.co/t/lowercase-index-when-created-from-fields/118893/1 "2018-02-07T17:27:15Z")

</div>

Hello,

I want to create an index that depends on some of the fields of my input lines (JSON lines).

like `index: "wilco-%{[site]}-%{[fwot_type]}-%{[layout_id]}-%{+yyyy.MM}-v1"`

But `%{[fwot_type]}` has some uppercases, therefore, it fails: `Invalid index name [wilco-foo-A380-999339-2018.02-v1], must be lowercase`

how could I deal with that? With logstash I had the lowercase filter, with ingest node too, but with filebeat?

thank's

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [February 8, 2018, 11:37pm UTC](https://discuss.elastic.co/t/lowercase-index-when-created-from-fields/118893/2 "2018-02-08T23:37:32Z")

</div>

As uppercase is invalid, beats should either provide a lowercase processor or always ensure index names are lower-case when using custom fields. Feel free to open a bug report: [https://github.com/elastic/beats/issues](https://github.com/elastic/beats/issues)

While not perfect, one can work around the issue by setting the index name in Ingest Node (set `_index` field to re-route to new index) or Logstash.

---

<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:** [March 8, 2018, 11:37pm UTC](https://discuss.elastic.co/t/lowercase-index-when-created-from-fields/118893/3 "2018-03-08T23:37:37Z")

</div>

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