欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > 能源 > linux下操作es及kibana的操作记录

linux下操作es及kibana的操作记录

2025/5/1 22:12:14 来源:https://blog.csdn.net/qq_38220334/article/details/144526933  浏览:    关键词:linux下操作es及kibana的操作记录

背景:工作中后面开始用es和kibana了,为了方便后面的操作,特记录一下,好多命令实在是记不住了,😄

kibana的操作

1.查看所有的索引的命令

GET /_cat/indices

2.创建索引的命令

PUT /es_dsj_6c_jky_yunzhe_data_extraction
{
"mappings" : {"properties" : {"cost_time" : {"type" : "integer"},"data_type" : {"type" : "integer"},"end_time" : {"type" : "date","format" : "yyyy-MM-dd HH:mm:ss"},"file_name" : {"type" : "text"},"flag" : {"type" : "integer"},"province_code" : {"type" : "integer"},"province_name" : {"type" : "keyword"},"start_time" : {"type" : "date","format" : "yyyy-MM-dd HH:mm:ss"},"txt_num" : {"type" : "integer"},"txt_size" : {"type" : "float"}}}}

3.查看索引的命令

GET /es_dsj_6c_jky_yunzhe_data_extraction/_search

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词