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

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

kibana的操作

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

javascript 复制代码
GET /_cat/indices

2.创建索引的命令

javascript 复制代码
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.查看索引的命令

javascript 复制代码
GET /es_dsj_6c_jky_yunzhe_data_extraction/_search
相关推荐
梁正雄17 小时前
linux服务-Nginx+Tomcat+Redis之Session 共享 - 容器单机版
linux·nginx·tomcat
wanhengidc17 小时前
云手机是由什么组成的?
运维·服务器·web安全·游戏·智能手机
linchare20 小时前
linux debian上只装mysql的客户端步骤
linux·mysql·debian
wanhengidc21 小时前
网站服务器都有哪些作用?
运维·服务器·科技·智能手机·云计算
卓小帅的博客1 天前
关于实现远程服务器使用本地网络的清晰简洁的教程
服务器·网络·vscode·连接超时
百***75741 天前
linux上redis升级
linux·运维·redis
顾安r1 天前
11.22 脚本打包APP 排错指南
linux·服务器·开发语言·前端·flask
Neur0toxin1 天前
入侵排查_2025/11/23
linux·windows·应急响应
小小编程能手1 天前
Linux文件编程
linux·运维·服务器
木童6621 天前
nginx安装步骤详解
linux·运维·服务器·网络·nginx