How can we make the type of a field(exception) permanently as object ?
I am facing issue where the type of the field sometimes gets assigned as text but required is object. According to the log which is first logged when roll over happens the field type will be decided as text or object.
Hello,
Try explicitly defining the mapping of exception as an object. Also stopping dynamic mapping so it doesn't try to figure out what to use. Here's an example in an index template:
Hi Justin,
Its clear. I would like to know if any other data which comes other than in form of object for example number will that log totally be rejected ?
In your specific case, the type "object" is explicitly excluded from the use of ignore_malformed, which would be a common approach in these cases.
I guess you could try to use ingest pipelines to tidy up any bad input data ... often better to try to "fix" this sort of issue at source (excuse the pun).
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.