es在kibana修改数据
修改数据
·
先备份查出来之前的数据
GET /didi/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"_id": "i2XK-4EBF56tTd_xHCvV"
}
}
]
}
}
}
{
"took" : 994,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "didi",
"_type" : "_doc",
"_id" : "i2XK-4EBF56tTd_xHCvV",
"_score" : 1.0,
"_source" : {
"transid" : "123456789",
"@timestamp" : "2020-07-14T08:17:43.585Z",
"log_time" : "2020-07-14 16:17:40:613",
"tags" : [
"_dateparsefailure"
],
"testlog_time" : "2020-07-14 16:17:40:613",
"message" : “didi”
}
}
]
}
}
直接修改数据
PUT /didi/_doc/fWXH-4EBF56tTd_xlyvF?pretty
{
"name": "John Doe"
}
更多推荐
已为社区贡献7条内容
所有评论(0)