summaryrefslogtreecommitdiff
path: root/spec/fixtures/lib/elasticsearch/query_with_end_time.json
blob: dca08382cd80743317ee55cae28c16e310ca75cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  "query": {
    "bool": {
      "must": [
        {
          "match_phrase": {
            "kubernetes.pod.name": {
              "query": "production-6866bc8974-m4sk4"
            }
          }
        },
        {
          "match_phrase": {
            "kubernetes.namespace": {
              "query": "autodevops-deploy-9-production"
            }
          }
        }
      ],
      "filter": [
        {
          "range": {
            "@timestamp": {
              "lt": "2019-12-13T14:35:34.034Z"
            }
          }
        }
      ]
    }
  },
  "sort": [
    {
      "@timestamp": {
        "order": "desc"
      }
    },
    {
      "log.offset": {
        "order": "desc"
      }
    }
  ],
  "_source": [
    "@timestamp",
    "message",
    "kubernetes.pod.name"
  ],
  "size": 500
}