----示例需求: 网站访问时延统计为了演示该功能,我们先建个索引,模拟一批数据#新建索引PUT website{ mappings: { logs: { properties: { latency:
, timestamp: { type: date } } } }}#模拟数据POST websitelogs_bulk{ index: {}}{ latency : 105, province : 江苏
, timestamp : 2018-10-28 }{ index: {}}{ latency : 83, province : 江苏, timestamp : 2018-10-29 }{ index:
{}}{ latency : 92, province : 江苏, timestamp : 2018-10-29 }{ index: {}}{ latency : 112, province : 江苏
新疆, timestamp : 2018-10-28 }{ index: {}}{ latency : 302, province : 新疆, timestamp : 2018-10-29 }DSL:#网站访问时延统计