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
相关推荐
石油人单挑所有2 分钟前
ProtoBuf编写网络版本通讯录时遇到问题及解决方案
运维·服务器
Andy1 小时前
分流设备的测试报告
运维·服务器
枷锁—sha2 小时前
【CTFshow-pwn系列】03_栈溢出【pwn 045】详解:Ret2Libc 之 32位动态泄露(补充本地 Libc 手动加载指南)
服务器·网络·网络安全·系统安全
啊辉的科研2 小时前
植物单细胞RNA-seq分析教程3-2025年版
linux·r语言
xdpcxq10292 小时前
EF Core实体追踪Entry中记录的数据
服务器·数据库·oracle
Norach2 小时前
ubuntu22.04安装ssh-server与realvnc-server
linux·服务器·经验分享·ubuntu·ssh·vnc
UP_Continue3 小时前
Linux--进程间通信
linux·运维·服务器
kaoa0003 小时前
Linux入门攻坚——67、MySQL数据库-4
linux·运维·数据库·mysql
蓝天居士3 小时前
VMware Workstation挂载共享文件夹(2)
linux·ubuntu
prince_zxill4 小时前
在 Ubuntu 系统下安装 Nanobot:全面指南
linux·运维·ubuntu