# Failed to parse the field

**URL:** <https://discuss.elastic.co/t/failed-to-parse-the-field/250026>\
**Category:** Elasticsearch\
**Created:** [September 25, 2020, 8:39pm UTC](https://discuss.elastic.co/t/failed-to-parse-the-field/250026 "2020-09-25T20:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramalakshmi](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Ramalakshmi](https://discuss.elastic.co/u/Ramalakshmi)\
**Post date:** [September 25, 2020, 8:39pm UTC](https://discuss.elastic.co/t/failed-to-parse-the-field/250026/1 "2020-09-25T20:39:12Z")

</div>

Hi  
I am sending logs to kibana using filebeat ,and I am facing below error while sending logs .Some of the events doesn't have host in raw data facing error for that events.

`[2020-09-24T09:20:40,591][WARN][logstash.outputs.elasticsearch][main] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"filetest-", :routing=>nil, :_type=>"_doc"}, #LogStash::Event:0x6eb22ef8], :response=>{"index"=>{"_index"=>"filetest-", "_type"=>"_doc", "_id"=>"keBFwHQB9GB4WNUD5v0d", "status"=>400, "error"=>{"type"=>"mapper_par `Preformatted text` sing_exception", "reason"=>"failed to parse field [host.hostname] of type [keyword] in document with id 'keBFwHQB9GB4WNUD5v0d'. Preview of field's value: '{}'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:603"}}}}}`

Please help me out

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 28, 2020, 3:35am UTC](https://discuss.elastic.co/t/failed-to-parse-the-field/250026/2 "2020-09-28T03:35:55Z")

</div>

Take a look at [Can't get text on a START\_OBJECT](https://discuss.elastic.co/t/cant-get-text-on-a-start-object/250010), it is the same error.

---

<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 26, 2020, 3:35am UTC](https://discuss.elastic.co/t/failed-to-parse-the-field/250026/3 "2020-10-26T03:35:56Z")

</div>

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