summaryrefslogtreecommitdiff
path: root/spec/fixtures/lib/elasticsearch/query.json
blob: 75164a7439f5c1b594b8c84d5c4cc619e5869835 (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
{
  "query": {
    "bool": {
      "must": [
        {
          "match_phrase": {
            "kubernetes.pod.name": {
              "query": "production-6866bc8974-m4sk4"
            }
          }
        },
        {
          "match_phrase": {
            "kubernetes.namespace": {
              "query": "autodevops-deploy-9-production"
            }
          }
        }
      ]
    }
  },
  "sort": [
    {
      "@timestamp": {
        "order": "desc"
      }
    },
    {
      "offset": {
        "order": "desc"
      }
    }
  ],
  "_source": [
    "@timestamp",
    "message",
    "kubernetes.pod.name"
  ],
  "size": 500
}