0% found this document useful (0 votes)
15 views1 page

Codigo

This document contains an Elasticsearch query that returns aggregated statistics on response times for HTTP requests to servers matching "web0*" over the last hour, filtered by domain "A26106013" and action "LOG REQUEST TIME". It returns the average, minimum, and maximum response times for each unique server in a composite aggregation with no more than 200 buckets.

Uploaded by

otebmu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Codigo

This document contains an Elasticsearch query that returns aggregated statistics on response times for HTTP requests to servers matching "web0*" over the last hour, filtered by domain "A26106013" and action "LOG REQUEST TIME". It returns the average, minimum, and maximum response times for each unique server in a composite aggregation with no more than 200 buckets.

Uploaded by

otebmu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

GET /ediwinws-*/_search

{
"aggs": {
"resultados": {
"composite": {
"size": 200,
"sources": [
{
"server": {
"terms": {
"field": "server"
}
}
}
]
},
"aggs": {
"tiempo": {
"stats": {
"field": "tiempo_ejecucion"
}
}
}
}
},
"size": 0,
"query": {
"bool": {
"filter": [
{
"wildcard": {
"server": "web0*"
}
},
{
"term": {
"domain": "A26106013"
}
},
{
"term": {
"action": "LOG REQUEST TIME"
}
},
{
"range": {
"@timestamp": {
"gte": "now-120m",
"lte": "now-60m"
}
}
}
]
}
}
}

You might also like