Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -XPOST "http://localhost:9300/logstash-*/_search?pretty=true" -d '{
- "aggs": {
- "throughput_avg": {
- "avg": {
- "field": "throughput"
- }
- },
- "aggs": {
- "terms": {
- "field": "packetSize",
- "size": 50
- }
- },
- "filter": {
- "and": [
- {
- "query": {
- "query_string": {
- "query": "(loss:\"0\" && bestOrWorst:\"worst\") || (loss:\"0\" && bestOrWorst:\"best\") || (loss:\"0.01\" && bestOrWorst:\"worst\") || (loss:\"0.01\" && bestOrWorst:\"best\")"
- }
- }
- },
- {
- "query": {
- "query_string": {
- "query": "testID:\"" + TestID + "\""
- }
- }
- }
- ]
- }
- },
- "size": 100000
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement