# Could not index event to Elasticsearch. {:status=\>400

**URL:** <https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-status-400/199916>\
**Category:** Logstash\
**Created:** [September 18, 2019, 6:29am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-status-400/199916 "2019-09-18T06:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashok9177](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@ashok9177](https://discuss.elastic.co/u/ashok9177)\
**Post date:** [September 18, 2019, 6:29am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-status-400/199916/1 "2019-09-18T06:29:49Z")

</div>

Hi There, i am using ELK-6.5.1 version and trying to create geo\_point indexes for kibana visualization, I have updated below template in kibana dev-tools and getting below error can anyone help me on this ?

> PUT \_template/template\_1  
> {  
> "index\_patterns": ["file\*", "citi\*"],  
> "settings": {  
> "number\_of\_shards": 1  
> },  
> "mappings": {  
> "\_doc": {  
> "\_source": {  
> "enabled": false  
> },  
> "properties": {  
> "host\_name": {  
> "type": "keyword"  
> },  
> "created\_at": {  
> "type": "date",  
> "format": "EEE MMM dd HH:mm:ss Z YYYY"  
> }  
> }  
> }  
> }  
> }

> [2019-09-18T06:24:00,752][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"file-2019.09.18", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0x6c84cf36], :response=\>{"index"=\>{"\_index"=\>"file-2019.09.18", "\_type"=\>"doc", "\_id"=\>"680KQ20BoWPmlsvdvlOG", "status"=\>400, "error"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Rejecting mapping update to [file-2019.09.18] as the final mapping would have more than 1 type: [\_doc, doc]"}}}}

---

<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:** [October 16, 2019, 6:29am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-status-400/199916/2 "2019-10-16T06:29:49Z")

</div>

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