elasticsearch命令大全

模糊匹配和范围查询

GET /_search
{
  "size":0,
  "query": {
    "bool": {
      "must": [
        {"wildcard": {
          "path": "/data/log/idcard.log*"
        }},
        {"range": {
            "@timestamp": {
            "gte": "2018-05-09",
            "lte": "2018-05-09"
        }}
      }
    ]
  }
}
}





发表于: 8月前   最后更新时间: 8月前   游览量:0
上一条:
下一条: