In my JSON data processing pipeline, some fields are coming in two formats: as an array and as a keyword.
When I set the mapping for "field_name" as an object in the index template, I get errors in the Logstash pipeline: "Unable to parse the keyword as object. Reason: Can't get text on a START_OBJECT at 1:6546."
When I set the mapping for "field_name" as a keyword in the index template, I receive the error: "Unable to parse the keyword as object, but found a concrete value."
You can't have a field that is a keyword in some documents and an object in others. To resolve it you will need to either convert the field to an object when it is a keyword or convert the field to a keyword when it is an object. See this thread.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.