elasticfeed

Export data from csv into Elasticsearch

MIT License

Downloads
41
Stars
3

From csv into Elasticsearch

Installation

 $ sudo pip3 install elasticfeed

Commandline

elasticfeed  --help 
elasticfeed  --host 127.0.0.1 --port 9200 --username username --password password <full filepath>

Python Module

from elastic_feeder.controller import FeedElastic
fe = FeedElastic(
        host="hostname or ip address", 
        port="port",
        filename="<full path>",
        index="index name",
        http_auth=('username', 'password'),
        properties={
            "some-name": {
                "type": "some-type",
            },
             "some-name": {
                "type": "some-type",

            },
             "some-name": {
                "type": "some-type",

            }
fe.run()

Note

First column is used as a key for data in Elasticsearch.

Supported OS

Linux, MacOS

Contributing

Feel free to open issue and send pull request.

elasticfeed supports Python >= 3.6