I have composed the following query in the dev tools, and when I try to copy the json portion after the search, I just get an error message. Any thoughts on how I should paste the query in the discover tool?
Thanks,
gthang
POST stats-m-mms-daily/_search
{
"query": {
"range": {
"@timestamp": {
"gt": "now-5s",
"lt": "now"
}
}
},
"size": 0,
"aggs": {
"cloud": {
"terms": {
"field": "groupName"
},
"aggs": {
"instance": {
"terms": {
"field": "instance",
"size": 1
},
"aggs": {
"totalQuotesReq": {
"sum": {
"field": "CustomStats_totalQuotesReq"
}
}
}
}
}
}
}
}