I create indexes on a daily basis using fluentd in Elasticsearch. I don't do any mapping on elasticsearch side. After a while, the related index could not be created in Elasticsearch and I got the following error. There is a template for ilm policy. I deleted the previously created indexes, template and ilm policy. I restarted Elasticsearch and Kibana. When I create an index with an index name that matches the old index pattern and send data to Kibana, I still get the same error. But when I give the index name different, there is no problem. Is this a bug? How can I solve it?
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "object mapping for [Direction] tried to parse field [Direction] as object, but found a concrete value"
}
],
"type" : "mapper_parsing_exception",
"reason" : "object mapping for [Direction] tried to parse field [Direction] as object, but found a concrete value"
},
"status" : 400
}
What you described in the previous post means that you have a index template that is creating a mapping that matches the index name...so check your templates
Default mapping would not reject that post command... If that is the first document posted
Back to the larger issue ...There is no fix without some choices/ work.
I showed you a sample ingest pipeline that could address the problem, something like that is prob your best approach
Otherwise the the docs that cannot be mapped will continue to be dropped.
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.