我已经从mongodb集合中的服务器插入了日志数据。使用聚合函数,日志数据已简化为以下文档结构:
{ "connectionCount" : "576", "eventTime" : "2016-08-16T12:33:58.536" }
{ "connectionCount" : "588", "eventTime" : "2016-08-16T12:34:58.549" }
{ "connectionCount" : "590", "eventTime" : "2016-08-16T12:35:58.558" }
{ "connectionCount" : "594", "eventTime" : "2016-08-16T12:36:58.572" }
{ "connectionCount" : "595", "eventTime" : "2016-08-16T12:37:58.587" }
{ "connectionCount" : "596", "eventTime" : "2016-08-16T12:38:58.597" }
{ "connectionCount" : "599", "eventTime" : "2016-08-16T12:40:58.618" }
{ "connectionCount" : "602", "eventTime" : "2016-08-16T12:43:58.648" }
{ "connectionCount" : "604", "eventTime" : "2016-08-16T12:45:58.698" }
{ "connectionCount" : "606", "eventTime" : "2016-08-16T12:46:58.708" }
{ "connectionCount" : "607", "eventTime" : "2016-08-16T12:48:58.728" }
{ "connectionCount" : "609", "eventTime" : "2016-08-16T12:50:58.754" }
我想在connectionCount从前面的eventTime增加10以上时识别eventTime,考虑到集合文档在eventTime上排序。如何在mongodb中实现这一目标