I have a one hour data in my index.I want to get group the data by its time field ('logged_time_unix').here is my query
[aggs] => Array
(
[viewTimeBy] => Array
(
[terms] => Array
(
[field] => logged_time_unix
[size] => 20000
)
)
)
after this query i got values grouped by time, but there are lot of time values(minute wise points)...I just wanted 5 grouping within 1 hour...how to do that ? anyone help me......