# Could not index event to Elasticsearch

**URL:** <https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777>\
**Category:** Logstash\
**Created:** [December 14, 2021, 10:53am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777 "2021-12-14T10:53:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [December 14, 2021, 10:53am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/1 "2021-12-14T10:53:51Z")

</div>

Hello everyone. i have a trouble with elastic. the logs stop come in since 16:40 and here is the log of logstash

`

`> [2021-12-14T16:57:20,948][WARN][logstash.outputs.elasticsearch][pipeline_ocp4] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"ocp4-project.tdw-nft-2021.12.14-cl2", :routing=>nil, :_type=>"_doc"}, #<LogStash::Event:0x644c7bc5>], :response=>{"index"=>{"_index"=>"ocp4-project.tdw-nft-2021.12.14-cl2", "_type"=>"_doc", "_id"=>"SthfuH0B94WWfC4GJorn", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [data] of type [text] in document with id 'SthfuH0B94WWfC4GJorn'. Preview of field's value: '{options={rejectUnauthorized=false, proxy=null, headers={Accept=application/json, x-msisdn=62123457599, CHANNELID=UX, x-signature=814ba1a597e0e74ce223ec52fab6d314, TRANSACTIONID=A301211214054806013575990, Content-Type=application/json}, x-msisdn=62123457599, method=GET, service=[TIBCO], uri=http://10.20.219.62:10082/fulfillment/purchaseoffer?msisdn=62123457599&id=00030386&subscribe=false&paymentmethod=GOPAY&version=v2&product_category=ML4_BP_3312&redirectURL=undefinedpackage-receipt%3Ftrxid%3DA301211214054806013575990&organization_code=&element2=undefined&third_party_id=&third_party_password=undefined&fund_source=EM_GOPAY&delivery_channel=&promo_code=&interface=app&expiry_duration=&expiry_uom=, transactionid=A301211214054806013575990, timeout=10000}}'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:2119"}}}}}`

can you help me to fix this error?

Here is the screenshot of my kibana

 ![ss](https://us1.discourse-cdn.com/elastic/original/3X/c/3/c3d51193c0add711074446083e30897b51837f55.png)

`

---

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [December 14, 2021, 10:55am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/2 "2021-12-14T10:55:26Z")

</div>

any more info you need?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 14, 2021, 6:11pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/3 "2021-12-14T18:11:46Z")

</div>

See [this](https://discuss.elastic.co/t/getting-illegal-state-exception-error-while-pushing-logs-to-elasticsearch/290029/2) answer about mapper\_parsing\_exception errors.

---

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [December 15, 2021, 7:28am UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/4 "2021-12-15T07:28:01Z")

</div>

does the page exist? i don't get anything when i open the link

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 15, 2021, 12:59pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/5 "2021-12-15T12:59:54Z")

</div>

Link updated.

---

<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:** [January 12, 2022, 1:00pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch/291777/6 "2022-01-12T13:00:00Z")

</div>

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