{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "clusterPhyId": {
              "value": %d
            }
          }
        },
        {
          "term": {
            "topic": {
              "value": "%s"
            }
          }
        },
       {
          "range": {
            "timestamp": {
              "gte": %d,
              "lte": %d
            }
          }
        }
      ]
    }
  },
  "sort": [
      {
        "timestamp": {
          "order": "desc"
        }
      }
    ]
}