Kibana bulk index from a Json file


(Hirad Khakipour) #1

I'm trying to index a json file using the bulk API. From the terminal I can easily do:
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/_bulk?pretty' --data-binary @logs.json

What's the syntax to do the same using kibana Console? I tried:
POST /_bulk?pretty --data-binary @[absolute path to logs.json]

But it gave me a null pointer exception.

I'm really new to ES and Kibana, so any help would be appreciated.


(Mark Walkom) #2

You cannot do that in Console as you cannot pull in files in that manner unfortunately.


(system) #3

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