# 6.4.1 invalid\_index\_name\_exception

**URL:** <https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205>\
**Category:** Logstash\
**Created:** [October 5, 2018, 11:50am UTC](https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205 "2018-10-05T11:50:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sles](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sles](https://discuss.elastic.co/u/sles)\
**Post date:** [October 5, 2018, 11:50am UTC](https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205/1 "2018-10-05T11:50:45Z")

</div>

Hello!

I'm newbie, just installed logstash 6.4.1 and see errors in log like:

[2018-10-05T11:45:49,445][ERROR][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"asamts,3-2018.10.05", :\_type=\>"doc", :\_routing=\>ni  
l}, #LogStash::Event:0x24298b3c], :response=\>{"index"=\>{"\_index"=\>"asamts,3-2018.10.05", "\_type"=\>"doc", "\_id"=\>nil, "status"=\>400, "error"=\>{"type"=\>"invalid\_index\_name\_exception", "reason"=\>"Invalid index na  
me [asamts,3-2018.10.05], must not contain the following characters [, ", \*, \, \<, |, ,, \>, /, ?]", "index\_uuid"=\>"_na_", "index"=\>"asamts,3-2018.10.05"}}}}

I can't understand how is it possible.  
I have in output:

```
    elasticsearch {
    # index => "%{type}-%{+YYYY.MM.dd}"
      index => "asamts-%{+YYYY.MM.dd}"
    }

```

I.e. it can't contain this ,3

Could you tell me how is it possible?

Thank you!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 5, 2018, 1:30pm UTC](https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205/2 "2018-10-05T13:30:10Z")

</div>

Perhaps you have another configuration file with an elasticsearch output that's configured differently? Keep in mind that Logstash loads all your .conf files in the directory. You can easily check this by commenting out the elasticsearch output above and see what happens.

---

<div class="post-metadata">

**Author:** ![sles](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sles](https://discuss.elastic.co/u/sles)\
**Post date:** [October 8, 2018, 8:10am UTC](https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205/3 "2018-10-08T08:10:47Z")

</div>

Really, no.  
I moved this log to rsyslogd and looks like it works now without problems and with far lower cpu usage.

---

<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:** [November 5, 2018, 8:10am UTC](https://discuss.elastic.co/t/6-4-1-invalid-index-name-exception/151205/4 "2018-11-05T08:10:50Z")

</div>

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