baihongyu.com
博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
kibana智能检索发送多次_msearch —— 配置index pattern,同时设置时间段,就知道到底是在哪些索引里去查找数据了...
阅读量:
6638 次
发布时间:
2019-06-25
本文共 2083 字,大约阅读时间需要 6 分钟。
kibanasite/elasticsearch/log-*/_field_stats?level=indices
返回:
{"_shards":{"total":600,"successful":600,"failed":0},"indices":{"log-2017.11.22-19-192.168.2.3-93004":{"fields":{"ReceiveDate":{"type":"date","max_doc":24117711,"doc_count":24117711,"density":100,"sum_doc_freq":-1,"sum_total_term_freq":24117711,"searchable":true,"aggregatable":true,"min_value":1511348400000,"min_value_as_string":"2017-11-22T11:00:00.000Z","max_value":1511351999000,"max_value_as_string":"2017-11-22T11:59:59.000Z"}}},"log-2017.11.22-19-192.168.2.3-93005":{"fields":{"ReceiveDate":{"type":"date","max_doc":24108636,"doc_count":24108636,"density":100,"sum_doc_freq":-1,"sum_total_term_freq":24108636,"searchable":true,"aggregatable":true,"min_value":1511348400000,"min_value_as_string":"2017-11-22T11:00:00.000Z","max_value":1511351999000,"max_value_as_string":"2017-11-22T11:59:59.000Z"}}},"log-2017.11.22-19-192.168.2.3-93002":{"fields":{"ReceiveDate":{"type":"date","max_doc":24123473,"doc_count":24123473,"density":100,"sum_doc_freq":-1,"sum_total_term_freq":24123473,"searchable":true,"aggregatable":true,"min_value":1511348400000,"min_value_as_string":"2017-11-22T11:00:00.000Z","max_value":1511351999000,"max_value_as_string":"2017-11-22T11:59:59.000Z"}}},"log-2017.11.22-19-192.168.2.3-93003":{"fields":{"ReceiveDate":{"type":"date","max_doc":24109946,"doc_count":24109946,"density":100,"sum_doc_freq":-1,"sum_total_term_freq":24109946,"searchable":true,"aggregatable":true,"min_value":1511348400000,"min_value_as_string":"2017-11-22T11:00:00.000Z","max_value":1511351999000,"max_value_as_string":"2017-11-22T11:59:59.000Z"}}},"log-2017.11.22-19-192.168.2.3-93001":{"fields":{"ReceiveDate":{"type":"date","max_doc":24111347,"doc_count":24111347,"density":100,"sum_doc_freq":-1,"sum_total_term_freq":24111347,"searchable":true,"aggregatable":true,"min_value":1511348400000,"min_value_as_string":"2017-11-22T11:00:00.000Z","max_value":1511351999000,"max_value_as_string":"2017-11-22T11:59:59.000Z"}}}}}
上述是按照小时建立的索引。
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/7881031.html
,如需转载请自行联系原作者
你可能感兴趣的文章
隐写术总结以及案例分享
查看>>
C#页面前台<%%><%#%><%=%>
查看>>
符号表的作用和地位
查看>>
Redis 几个全局命令, 以及事物
查看>>
json对象和字符串的相互转换
查看>>
《迎新》
查看>>
mysql binlog日志自动清理及手动删除
查看>>
JavaEE 技术选型建议,server配置,部署策略
查看>>
使用Eclipse EE(汉化版) 创建一个JavaWeb工程
查看>>
【深度学习】常用的模型评估指标
查看>>
Windows下使用MakeFile(Mingw)文件
查看>>
成长管理、思考管理
查看>>
转:高级PHP应用程序漏洞审核技术
查看>>
一些有意思的算法代码
查看>>
Win8 Metro(C#)数字图像处理--2.36角点检测算法
查看>>
Shiro入门这篇就够了【Shiro的基础知识、回顾URL拦截】
查看>>
Hadoop学习之路(十二)分布式集群中HDFS系统的各种角色
查看>>
SpringBoot(十四)-- 整合Swagger2
查看>>
Hibernate学习--hibernate延迟加载原理-动态代理(阿里电面)
查看>>
jQuery的datatable的destroy属性,和$("#test").dataTable().fnDestroy();区别,两者的区别
查看>>