elasticsearch8.x版本不能导入历史版本的数据
来源:19-1 -导入数据

qq_慕神6513837
2022-11-30
数据格式为:
{“index”:{"_index":“logstash-2015.05.18”,"_type":“log”}}
{"@timestamp":“2015-05-18T09:03:25.877Z”,“ip”:“185.124.182.126”,“extension”:“gif”,“response”:“404”,“geo”:{“coordinates”:{“lat”:36.518375,“lon”:-86.05828083},“src”:“PH”,“dest”:“MM”,“srcdest”:“PH:MM”},"@tags":[“success”,“info”],“utc_time”:“2015-05-18T09:03:25.877Z”,“referer”:“http://twitter.com/error/william-shepherd",“agent”:"Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1”,“clientip”:“185.124.182.126”,“bytes”:804,“host”:“motion-media.theacademyofperformingartsandscience.org”,“request”:"/canhaz/gemini-7.gif",“url”:"https://motion-media.theacademyof
。。。。。。
使用curl命令批量导入数据提示:
{
“error” : {
“root_cause” : [
{
“type” : “illegal_argument_exception”,
“reason” : “Action/metadata line [1] contains an unknown parameter [_type]”
}
],
“type” : “illegal_argument_exception”,
“reason” : “Action/metadata line [1] contains an unknown parameter [_type]”
},
“status” : 400
}
1回答
-
rockybean
2022-11-30
这个样例数据是基于 es 6 来准备的,不太适合 es8了,因为 es8 把 index type 完全去除了,无法兼容。
你可以使用 kibana 自带的样例数据来测试
https://www.elastic.co/guide/en/kibana/current/get-started.html#gs-get-data-into-kibana
里面有个 web log,和这个数据很像的,而且自带的 dashboards 也比较完备,可以以这个为基础来研究
00
相似问题