# reason=\>"Can't get text on a START\_OBJECT

**URL:** <https://discuss.elastic.co/t/reason-cant-get-text-on-a-start-object/147829>\
**Category:** Logstash\
**Created:** [September 8, 2018, 7:39pm UTC](https://discuss.elastic.co/t/reason-cant-get-text-on-a-start-object/147829 "2018-09-08T19:39:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmassari](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jmassari](https://discuss.elastic.co/u/jmassari)\
**Post date:** [September 8, 2018, 7:39pm UTC](https://discuss.elastic.co/t/reason-cant-get-text-on-a-start-object/147829/1 "2018-09-08T19:39:10Z")

</div>

Trying to route logs from a local machine to a logstash server in GCP, which then goes to elasticsearch as part of elastic cloud. Looks like this connection is breaking down trying to write to elasticsearch, but that isnt happening for other data sources.

The [WARN] from Logstash:

**[2018-09-08T19:04:08,147][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-2018.09.08", :\_type=\>"doc", :\_routing=\>nil}, #\<LogStash::Event:0x413ae246\>], :response=\>{"index"=\>{"\_index"=\>"logstash-2018.09.08", "\_type"=\>"doc", "\_id"=\>"27KRumUBR3JTVwE35DjE", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse [host]", "caused\_by"=\>{"type"=\>"illegal\_state\_exception", "reason"=\>"Can't get text on a START\_OBJECT at 1:130"}}}}}**

---

<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:** [September 10, 2018, 6:03am UTC](https://discuss.elastic.co/t/reason-cant-get-text-on-a-start-object/147829/2 "2018-09-10T06:03:29Z")

</div>

Please google the error message. This has been discussed here and in GitHub issues many times before.

---

<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 8, 2018, 6:03am UTC](https://discuss.elastic.co/t/reason-cant-get-text-on-a-start-object/147829/3 "2018-10-08T06:03:30Z")

</div>

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