Multiple max aggs for last months

Hi,

I am struggling with the query to search for 2 max values, mag and depth, over the last day or so.
I have read in the topics here but cannot find the solution.

Any help is appreciated.

This portion works, but if I add another aggs max I get errors.

GET earthquakes/_search
{
"size": 0,
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": "now-1d/d"
}
}
}
]
}
},
"aggs": {
"max_mag": {
"max": {
"field": "mag"
}
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.