[error when put index template ]Root mapping definition has unsupported parameters

I send following cmd to kibana.dev tool, and get error. what I did wrong? My elasticSearch version is 6.8.0

{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:[Item : {properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [properties]: Root mappingdefinition has unsupported parameters: [Item :{properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:[Item : {properties={Mkdir={properties={BandWidth={type=long},Iops={type=long}}}, Write={properties={BandWidth={type=long},Iops={type=long}}}, Getattr={properties={BandWidth={type=long},Iops={type=long}}}, MkSymlink={properties={BandWidth={type=long},Iops={type=long}}}, Readdir={properties={BandWidth={type=long},Iops={type=long}}}, Truncate={properties={BandWidth={type=long},Iops={type=long}}}, Rename={properties={BandWidth={type=long},Iops={type=long}}}, Read={properties={BandWidth={type=long},Iops={type=long}}}, ReadLink={properties={BandWidth={type=long},Iops={type=long}}}, Create={properties={BandWidth={type=long},Iops={type=long}}}, Lookup={properties={BandWidth={type=long},Iops={type=long}}}, Setattr={properties={BandWidth={type=long},Iops={type=long}}}, Link={properties={BandWidth={type=long},Iops={type=long}}}, Unlink={properties={BandWidth={type=long},Iops={type=long}}}}}] [CFSItemName : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [CFSTagSub :{type=text, fields={keyword={ignore_above=256, type=keyword}}}][CFSTag : {type=text, fields={keyword={ignore_above=256,type=keyword}}}] [CFSCluster : {type=text,fields={keyword={ignore_above=256, type=keyword}}}] [TimeStamp :{type=date}]"
}
},
"status": 400
}
PUT _template/cfs_index_11_cfs_clt_io-20*
{
    "index_patterns" : ["cfs_index_11_cfs_clt_io-20*"],
    "mappings":{
        "properties":{
            "CFSCluster":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSItemName":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSTag":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "CFSTagSub":{
                "type":"text",
                "fields":{
                    "keyword":{
                        "type":"keyword",
                        "ignore_above":256
                    }
                }
            },
            "Item":{
                "properties":{
                    "Create":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Getattr":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Link":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Lookup":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "MkSymlink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Mkdir":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Read":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "ReadLink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Readdir":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Rename":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Setattr":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Truncate":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Unlink":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    },
                    "Write":{
                        "properties":{
                            "BandWidth":{
                                "type":"long"
                            },
                            "Iops":{
                                "type":"long"
                            }
                        }
                    }
                }
            },
            "TimeStamp":{
                "type":"date"
            }
        }
    }
}

answer it by myself.

in 6.8.0 , define a mapping need be like this:

"mapping" :{
    "data": {
        "properties":{...}
    }
}

instead of

"mapping" :{
        "properties":{...}
}

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