# Log stash fails to index events into elastic search

**URL:** https://discuss.elastic.co/t/log-stash-fails-to-index-events-into-elastic-search/191660
**Category:** Elasticsearch
**Created:** [July 22, 2019, 2:30pm UTC](https://discuss.elastic.co/t/log-stash-fails-to-index-events-into-elastic-search/191660 "2019-07-22T14:30:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![manjudr](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@manjudr](https://discuss.elastic.co/u/manjudr)
#### Post date: [July 22, 2019, 2:30pm UTC](https://discuss.elastic.co/t/log-stash-fails-to-index-events-into-elastic-search/191660/1 "2019-07-22T14:30:12Z")

</div>

When try to index **{"ets":1.56380271344E12}** this event into elastic search it's throwing an `illegal_argument_exception`  
**Spec:**

Log stash Version:2.3.4  
Elastic search Version: 2.4.5

**Input events:**

Event1: {"ets":1.56380271344E12} // **Fails to index**

Event2 {"ets":1.563803028911E12} // **Works fine**

**ES-Mapping :**

"ets": {  
"format": "date\_hour\_minute\_second\_millis||epoch\_millis",  
"type": "date"  
}

**Error:**

`"error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [ets]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"1.56380271344E+12\" is malformed at \".56380271344E+12\""}}}}, :level=>:warn}`

Did anybody faced this issue? Can you please help me how to resolve this or any workaround?

---

<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: [August 19, 2019, 2:30pm UTC](https://discuss.elastic.co/t/log-stash-fails-to-index-events-into-elastic-search/191660/2 "2019-08-19T14:30:13Z")

</div>

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