# 查询所有索引
GET /_cat/indices?v
# 删除索引
DELETE /customer?pretty
# 查询索引为dome
GET /xtgk-code-2022.04.28/_search
{
# 查询条件
"query": {"match_all": {}},
# 排序
"sort": [
{
# 排序的字段
"@timestamp": {
# 规则
"order": "desc"
}
}
]
# 结果显示的内容
, "_source": ["@timestamp","message"]
}
GET /xtgk-code-2022.04.28/_search
{
# 增加筛选条件
"query": {"match": {"message": "130523301100000000000209"}},
"sort": [
{
"@timestamp": {
"order": "desc"
}
}
]
, "_source": ["@timestamp","message"]
}
欢迎来撩 : 汇总all