首页 > 其他分享 >es - Kibana API - 批量插入

es - Kibana API - 批量插入

时间:2023-10-17 13:02:41浏览次数:47  
标签:index BookPrice2 BookPrice1 19550 Kibana API books id es

(3). 批量插入:

POST _bulk
{ "index" : { "_index" : "books", "_id" : "19553" } }
{"BookID":19552,"BookName":" C语言程序设计实验指导与习题解答","BookIntr":"导语_点评_推荐词","BookPrice1":19,"BookPrice2":19,"BookAuthor":"蒋清明","BookPress":"人民邮电出版社","BookDate":" 2008-10-01","BookKind":8}
{ "index" : { "_index" : "books", "_id" : "19550" } }
{"BookID":19550,"BookName":" C语言程序设计教程(第二版)","BookIntr":"","BookPrice1":37.9,"BookPrice2":40,"BookAuthor":"王绪梅詹春华陈剑锋","BookPress":"科学出版社","BookDate":" 2015-05-04","BookKind":8}
结果:
{
  "took" : 43,
  "errors" : false,
  "items" : [
    {
      "index" : {
        "_index" : "books",
        "_type" : "_doc",
        "_id" : "19552",
        "_version" : 2,
        "result" : "updated",
        "_shards" : {
          "total" : 2,
          "successful" : 1,
          "failed" : 0
        },
        "_seq_no" : 1,
        "_primary_term" : 1,
        "status" : 200
      }
    },
    {
      "index" : {
        "_index" : "books",
        "_type" : "_doc",
        "_id" : "19550",
        "_version" : 1,
        "result" : "created",
        "_shards" : {
          "total" : 2,
          "successful" : 1,
          "failed" : 0
        },
        "_seq_no" : 2,
        "_primary_term" : 1,
        "status" : 201
      }
    }
  ]
}

标签:index,BookPrice2,BookPrice1,19550,Kibana,API,books,id,es
From: https://blog.51cto.com/u_16237074/7902083

相关文章

  • 无涯教程-NumPy - resize函数
    此函数返回具有指定大小的新数组,该函数采用以下参数。numpy.resize(arr,shape)Sr.No.描述1arr输入数组要调整大小2shape输出数组的新维度importnumpyasnpa=np.array([[1,2,3],[4,5,6]])print'Firstarray:'printaprint'\n'print'Theshapeo......
  • python request向服务端发送文件
    本篇文章主要介绍1.如何使用pythonrequest向服务端发送文件2.服务端如何接收文件3.服务端如何发送文件如何使用pythonrequest向服务端发送文件request.post可以发送file类型deffoo():local_url="http://127.0.0.1:5000/test_api"file={'video':open("......
  • vmware esxi 安装CentOS8.5
    阿里云镜像站下载CentOS镜像:https://mirrors.aliyun.com/centos/参考安装文章:https://fanyi.baidu.com/?aldtype=16047#auto/zh自己曾经写的安装虚拟机文章:vmwareesxi6.7安装windowsserver2012r2虚拟机 ......
  • TypeError: Polygon.__init__() takes 2 positional arguments but 3 were given
    《程序员数学:用Python学透线性代数和微积分》第3.5章,源码bug修正。报错信息:wang@wanggongdeMacBook-AirpythonTest%/usr/local/bin/python3/Users/wang/Documents/VSCode/pythonTest/chapter3/chapter3.pyTraceback(mostrecentcalllast):File"/Users/wang/Document......
  • webapi body 参数获取数据
    publicstringHttpPost(){stringstrURL="";DataTabledt=newArichive().GetKEY();stringJsonString=string.Empty;JsonString="{\"appKey\":\""+dt.Rows[......
  • Qt OpenGL textures详解
    1.初始化opengl资源 Q_INIT_RESOURCE:textures(资源名称)QSurfaceFormat:定义3d面显示方式如果在vs+qtvstools中无法正常显示3d图形,则需加入以下代码:format.setStenciBufferSize(8);format.setVersion(1,1);版本号根据用户安装的Qt版本来更改2.继承QOpenGLWidget和QOpen......
  • 【转载】How to solve the problem that getting timestamp from Mysql database is 8
    Thisarticleintroducestherelevantknowledgeof"howtosolvetheproblemofobtainingtimestampfromMysqldatabase8hoursearlierthanthenormaltime".Intheoperationprocessofactualcases,manypeoplewillencountersuchdifficulties.......
  • 解决OSError: cannot open resource self.font = core.getfont(font, size, index, en
    解决OSError:cannotopenresourceself.font=core.getfont(font,size,index,encoding,layout_engin在使用Python编程时,我们有时会遇到OSError:cannotopenresourceself.font=core.getfont(font,size,index,encoding,layout_engin这个错误。这个错误通常是由于缺少......
  • Python多进程之分享(multiprocessing包)
    threading和multiprocessing(可以阅读Python多线程与同步)multiprocessing包是Python中的多进程管理包。与threading.Thread类似,它可以利用multiprocessing.Process对象来创建一个进程。该进程可以运行在Python程序内部编写的函数。该Process对象与Thread对象的用法相同,也有start......
  • Android rescueParty 救援模式
    现象:设备刷机后无法启动,不停重启。 备注:userdebug版本无问题,user版本才有问题。 分析:1.user版本无法获取到logcat日志,但是从获取的串口日志如下:[   89.217156]|01-01 00:02:50.315 reboot: Restarting system with command 'rescueparty'可以看到重启原因是......