Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapper_parsing_exception "failed to parse field [host] of type [text]" #9

Open
opoplawski opened this issue Jan 25, 2019 · 3 comments

Comments

@opoplawski
Copy link

Get lots of:

``
logstash[20807]: [2019-01-25T15:27:15,753][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-dns-2019.01.25", :_type=>"doc", :routing=>nil}, #LogStash::Event:0x65e65681], :response=>{"index"=>{"_index"=>"logstash-dns-2019.01.25", "_type"=>"doc", "_id"=>"gy1Wh2gBNsyAfm1OvkqE", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [host] of type [text]", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:939"}}}}}


This seems to be because beats now use "host.ip"/"host.name" and so forth now - https://www.elastic.co/guide/en/beats/libbeat/current/breaking-changes-6.3.html
@opoplawski
Copy link
Author

Hmm, this might be an issue with my using two different versions of beats (6.2.4 and 6.4.2).

@opoplawski
Copy link
Author

Also see want seems to be caused by the opposite expectation for host:

logstash[6183]: [2019-01-25T15:31:54,917][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2019.01.25", :_type=>"doc", :routing=>nil}, #<LogStash::Event:0xfb3cfa0>], :response=>{"index"=>{"_index"=>"logstash-2019.01.25", "_type"=>"doc", "_id"=>"1i1bh2gBNsyAfm1OAHDO", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [host] tried to parse field [host] as object, but found a concrete value"}}}}

@pevma
Copy link
Member

pevma commented Jan 27, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants