daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Aug 19th, 2015 242 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. curl -XPOST "http://localhost:9300/logstash-*/_search?pretty=true" -d '{
  2.     "aggs": {
  3.         "throughput_avg": {
  4.             "avg": {
  5.                 "field": "throughput"
  6.             }
  7.         },
  8.         "aggs": {
  9.             "terms": {
  10.                 "field": "packetSize",
  11.                 "size": 50
  12.             }
  13.         },
  14.         "filter": {
  15.             "and": [
  16.                 {
  17.                         "query": {
  18.                             "query_string": {
  19.                                 "query": "(loss:\"0\" && bestOrWorst:\"worst\") || (loss:\"0\" && bestOrWorst:\"best\") || (loss:\"0.01\" && bestOrWorst:\"worst\") || (loss:\"0.01\" && bestOrWorst:\"best\")"
  20.                             }
  21.                         }
  22.                 },
  23.                 {
  24.                         "query": {
  25.                             "query_string": {
  26.                                 "query": "testID:\"" + TestID + "\""
  27.                             }
  28.                         }
  29.                 }
  30.                
  31.             ]
  32.         }
  33.     },
  34.     "size": 100000
  35. }'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top