# Could not index in elasticsearch

**URL:** <https://discuss.elastic.co/t/could-not-index-in-elasticsearch/145660>\
**Category:** Logstash\
**Created:** [August 23, 2018, 6:20am UTC](https://discuss.elastic.co/t/could-not-index-in-elasticsearch/145660 "2018-08-23T06:20:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArjunSISA](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@ArjunSISA](https://discuss.elastic.co/u/ArjunSISA)\
**Post date:** [August 23, 2018, 6:20am UTC](https://discuss.elastic.co/t/could-not-index-in-elasticsearch/145660/1 "2018-08-23T06:20:26Z")

</div>

[2018-08-23T11:11:52,626][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400,  
:action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-syslog-2018.08.23", :\_type=\>"doc", :\_routing=\>nil}, #\<LogStash::Eve  
nt:0x1962bb79\>], :response=\>{"index"=\>{"\_index"=\>"logstash-syslog-2018.08.23", "\_type"=\>"doc", "\_id"=\>"AWVlTZzMW7Xm-Y  
2dW4o5", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse [timestamp]", "caused\_b  
y"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Invalid format: "Aug 23 11:09:52""}}}}}

Getting this error repeatedly. Multiple grok patterns have been added hence unable to find out which one is causing the issue. Requesting help

---

<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:** [August 23, 2018, 7:13am UTC](https://discuss.elastic.co/t/could-not-index-in-elasticsearch/145660/2 "2018-08-23T07:13:20Z")

</div>

Your `timestamp` field has been mapped as a date field with a certain format and now you're sending documents with an incompatible format of that field.

You should probably be using (different) date filters to parse the `timestamp` field into `@timestamp` and then delete the original `timestamp` field.

---

<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:** [September 20, 2018, 7:13am UTC](https://discuss.elastic.co/t/could-not-index-in-elasticsearch/145660/3 "2018-09-20T07:13:23Z")

</div>

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