I have elasticsearch query output in format like this:
{
      "_index" : "logstash-2017.06.04",
      "_type" : "nginx_log",
      "_id" : "AVxzT8gGkcEbrbfVdHEU",
      "_score" : null,
      "_source" : {
         "method" : "GET",
        "path" : "",
        "code" : "200",
        "size" : "396",
        "request_time" : "0.000",
        "referer" : "-",
        "agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36",
        "@timestamp" : "2017-06-04T13:30:37+00:00"
      },
      "sort" : [ 1496583037000 ]
    }
Now I want to get the sum of "size" key. Is it possible from elasticsearch query?
PS: the complete query result looks like this: https://pastebin.com/raw/8aPiAb1V
Thanks.