记录ELK修改mapping报错“Validation Failed: 1: index patterns are missing;“
修改语句:curl -X PUT -H 'Content-Type:application/json'http://IP:9200/_template/tms_schedule_template -d '{"tms_schedule_template":{"order":10,"index_patterns":...}}'错误信息:{"error":{"root_cause":[{"type":"
·
修改语句:
curl -X PUT -H 'Content-Type:application/json' http://IP:9200/_template/tms_schedule_template -d '{"tms_schedule_template":{"order":10,"index_patterns":...}}'
错误信息:
{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: index patterns are missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: index patterns are missing;"},"status":400}
仔细查看发现是template是复制的整个模板语句,需要去除外层多余{"tms_schedule_template":}:
curl -X PUT -H 'Content-Type:application/json' http://IP:9200/_template/tms_schedule_template -d '{"order":10,"index_patterns":...}'
更多推荐
已为社区贡献1条内容
所有评论(0)