Sum of doc_count through multiple aggregations


(David) #1

Hi,

how can I sum all doc_counts from multiple aggregations in a condition expression like

  "condition": {
    "array_compare": {
      "ctx.payload.aggregations.bad_computer.buckets": {
        "path": "doc_count",
        "sum": {
          "gt": {
            "value": 5
          }
       }
      }
    }
  }

I am using Elasticsearch 5.4 with XPack

Thanks

David


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.