-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I'm confused about elasticsearch-py bulk
I did expect that the following code would work:
from elasticsearch import Elasticsearch
es = Elasticsearch()
doc = '''\n {"host":"logsqa","path":"/logs","message":"test test","@timestamp":"2014-10-02T10:11:25.980256","tags":["multiline","mydate_0.005"]} \n'''
result = es.bulk(index="logstash-test", doc_type="test", body=doc)
Based on elasticsearch.bulk() function description it should do the work.
More on the topic:
My post about elasticsearch.bulk()
http://stackoverflow.com/questions/26159949/elasticsearch-python-bulk-api-elasticsearch-py
Working example witch helpers.bulk(es, actions)
http://stackoverflow.com/questions/20288770/how-to-use-bulk-api-to-store-the-keywords-in-es-by-using-python
Metadata
Metadata
Assignees
Labels
No labels