Can't merge a non object mapping

(valdemar) #1


I am getting this error

2017/09/26 20:31:28.110247 client.go:465: WARN Can not index event (status=400): {"type":"illegal_argument_exception","reason":"Can't merge a non object mapping [] with an object mapping []"}


(Andrew Kroh) #2

This likely indicates that you have a field named and it's value was an object. And now you are sending the same field but with a value that is not object (like a string).

You are probably using dynamic mappings which means Elasticsearch will create a mapping for the field the first time that it sees it. The first event containing that field will determine the mapping type. After that you must be consistent with the data type sent for that field or else you will get this error.

(system) #3

This topic was automatically closed after 21 days. New replies are no longer allowed.