some data in elasticsearch like this:
{"info":"fwefwefwef","is_fail":0,"result":404,"key":"845722d85520c91f345b08aba3233c96","duration":1,"lts_at":1479786902}
'lts_at is' timestamp, and i want to group by datas in 'floor(lts_at/300)'
{
"aggs": {
"per_5minute": {
"terms": {
"field": "lst_at/300"
}
}
}
how to write the Aggregations query?