{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [logstash-test] as the final mapping would have more than 1 type: [_doc, logs]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [logstash-test] as the final mapping would have more than 1 type: [_doc, logs]"
},
"status": 400
}
2)And when i dont use hypen (-) then it work correct.
One note please refrain from posting images please just post the actual text images are impossible to search and sometimes they do not show up correctly. See below the proper what to do it. Also Please format your code by using the </> button above many of use will not answer your post unless you take the time to do that
Your PUTs are malformed.
The format is
PUT /<target>/_doc/<_id>
See here and why _doc is needed here <---This is really important
but, when I used a command like this.
PUT /logstash-test/logs/1
{
"demo" : "demo"
}
Result
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [logstash-test] as the final mapping would have more than 1 type: [_doc, logs]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [logstash-test] as the final mapping would have more than 1 type: [_doc, logs]"
},
"status": 400
}
when I use the specific word as "logstash " then I am facing this error.
You did not format your code, also You did not read the removal of types .. you can not set the _type which is that you trying to do are doing by using the wrong sytax.
This has nothing to do with the word logstash and everything to do with multiple types.
You did not DELETE the old Index then you are still not creating PUT with proper syntax.
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.