summaryrefslogtreecommitdiff
path: root/src/es5/es-query.json
blob: 5bec12fb9e87e50defaa3966dcbc80cae99596ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "aggregations":
  {
      "by_hostname":
      {
          "terms": { "script": "[ doc['hostname'].value, doc['streamer-id.content-id'].value, doc['streamer-id.format'].value, doc['streamer-id.quality'].value  ].join('/') " }
      },
      "the_total_time":
      {
          "sum": { "field": "duration-ms" }
      },
      "da_klaient_do":
      {
          "sum": { "field": "data.client-count" }
      }
  }
}