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.