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
相关推荐
Johny_Zhao1 天前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
洛森唛1 天前
Elasticsearch DSL 查询语法大全:从入门到精通
后端·elasticsearch
YuMiao2 天前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题
服务器·网络协议
chlk1233 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑3 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件3 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号3 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash3 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
Elasticsearch4 天前
如何使用 Agent Builder 排查 Kubernetes Pod 重启和 OOMKilled 事件
elasticsearch
哈基咪怎么可能是AI4 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github