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
相关推荐
Yogurt_cry4 小时前
[树莓派4B] 闲置近10年的爱普生 L310 打印机爆改无线打印机
linux·物联网·树莓派
Johny_Zhao1 天前
OpenClaw中级到高级教程
linux·人工智能·信息安全·kubernetes·云计算·yum源·系统运维·openclaw
Sheffield2 天前
Docker的跨主机服务与其对应的优缺点
linux·网络协议·docker
Sheffield2 天前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
Elasticsearch2 天前
需要知道某个同义词是否实际匹配了你的 Elasticsearch 查询吗?
elasticsearch
Johny_Zhao3 天前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev3 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
0xDevNull4 天前
Linux切换JDK版本详细教程
linux
进击的丸子4 天前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端