Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]


(Kanaga) #1

In postman i posted below data

Url: localhost:9200/.kibana/visualization/scanreport

header : content-type/application/json
Method:Put
Requestbody:

{"title":"PieSampleChart","visState":"{"aggs":[{"id":"1","params":{},"schema":"metric","type":"count"},{"id":"2","params":{"field":"leadsource","order":"desc","orderBy":"1","size":100},"schema":"segment","type":"terms"}],"listeners":{},"params":{"addLegend":true,"addTooltip":true,"isDonut":false,"shareYAxis":true},"type":"pie"}","uiStateJSON": "{}","description": "","version": 1,"kibanaSavedObjectMeta": {"searchSourceJSON": "{"index":"testsamplee","query":{"query_string":{"analyze_wildcard":true,"query":""}},"filter":}"}}

AM getting below response only am not able to find the issue

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]"
},
"status": 400
}

Can anyone help on this issue please
Thanks in advance


(Anup Kumar Saha) #2

curl --header 'content-type: application/JSON' -XPUT 127.0.0.1:5601/.kibana/visualization/smartQED_Line_Chart -d
'{ "title": "smartQED_Line_Chart", "visState": "{"title":"smartQED_Line_Chart","type":"line","params":{"type":"line","grid":{"categoryLines":false,"style":{"color":"#eee"}},"categoryAxes":[{"id":"CategoryAxis-1","type":"category","position":"bottom","show":true,"style":{},"scale":{"type":"linear"},"labels":{"show":true,"truncate":100},"title":{}}],"valueAxes":[{"id":"ValueAxis-1","name":"LeftAxis-1","type":"value","position":"left","show":true,"style":{},"scale":{"type":"linear","mode":"normal"},"labels":{"show":true,"rotate":0,"filter":false,"truncate":100},"title":{"text":"Count"}}],"seriesParams":[{"show":"true","type":"line","mode":"normal","data":{"label":"Count","id":"1"},"valueAxis":"ValueAxis-1","drawLinesBetweenPoints":true,"showCircles":true}],"addTooltip":true,"addLegend":true,"legendPosition":"right","times":,"addTimeMarker":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"ip.keyword","size":10,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}", "uiStateJSON": "{}", "description": "", "version": 1, "kibanaSavedObjectMeta": { "searchSourceJSON": "{"index":"logstash-2015","query":{"query":"","language":"lucene"},"filter":}" } }'

Hi.... I am using ES 6.5 and Kibana 6.5

Getting Error --- Rejecting mapping update to [.kibana] as the final mapping would have more than 1 type: [visualization, doc]

Can anyone help me ..it is urgent..
Thanks in advance.


(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.