Skip to content

elasticsearch.bulk() #135

@sirkubax

Description

@sirkubax

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions