elasticsearch中的一些数据是这样的:
{"info":"fwefwefwef","is_fail":0,"result":404,"key":"845722d85520c91f345b08aba3233c96","duration":1,"lts_at":1479786902}
'lts_at 是'时间戳,我想按'floor(lts_at/300)'中的数据分组
{
"aggs": {
"per_5minute": {
"terms": {
"field": "lst_at/300"
}
}
}
如何编写聚合查询?