Pushing pcap json into Kibana using BULK API

I am trying to create index, for pcap files.

here is the request in Dev Tools console:
POST /pcaptest/_doc
"dynamic": "false",
"index" : {"type":"nested"},

it works fine without bulk, my curl command is as follows:
curl -s -H "Content-Type: application/json" -XPOST http://x.x.x.x:9200/pcaptest/_doc --data-binary "@page1.json

Can anybody help me with bulk?

  1. what will be the curl request? and
  2. what will the POST request?
    I want to have doc as I eventually want to send 1 packet per doc.
    I tried
    POST /pcaptest/_doc/_bulk
    it's giving me "error": {
    "root_cause": [
    "type": "json_e_o_f_exception",
    "reason": "Unexpected end-of-input within/between Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@38a3acfa; line: 1, column: 25]"
    I searched existing topics , but could not figure out exact format for POST and curl request

For above request my data json was single valid json block :

but now I want to send packet json data as follows, which is not a valid json:


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.