# Could not index event to Elasticsearch:cannot be changed from type \[float\] to \[long\]:

**URL:** <https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-cannot-be-changed-from-type-float-to-long/138838>\
**Category:** Logstash\
**Created:** [July 6, 2018, 7:28am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-cannot-be-changed-from-type-float-to-long/138838 "2018-07-06T07:28:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 9, 2018, 7:23am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-cannot-be-changed-from-type-float-to-long/138838/6 "2018-07-09T07:23:16Z")

</div>

Here is the advice I gave you last time:

> If you don't know how to do it, feel free to ask in #logstash channel.

If you still want to ask here, you need to provide informations to help to diagnose such as:

- a sample pipeline which reproduces your problem
- a first correct input content
- the input content that make failing your pipeline
- optionally if any the mapping your defined
- the mapping generated for your index
- if exist, the index templates.

---

_[View the full topic](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-cannot-be-changed-from-type-float-to-long/138838)._
