Skip to main content

No project description provided

Project description

es2es Build Status

Transfers data between Elasticsearch servers

Installation

pip install es2es

Usage

from es2es import es2es

es2es(origin_endpoint='https://PATH-TO-ENDPOINT',
      origin_index='ORIGIN_INDEX',
      dest_endpoint='https://PATH-TO-ANOTHER-ENDPOINT',
      dest_index='DESTINATION_INDEX')

Advanced usage

origin_endpoint (str): "Path to the endpoint to transfer data from."
origin_index (str): "Index at the endpoint to transfer data from."
dest_endpoint (str): "Path to the endpoint to transfer data to."
dest_index (str): "Index at the endpoint to transfer data to."
origin_method (str, default='GET'): "Method for retrieving data from origin endpoint (e.g. 'GET' or 'POST')."
chunksize (int, default=100): "Number of records to send to the new server in bulk."
scroll (str, default='1m'): "Elasticsearch scroll window."
origin_kwargs (dict, default={}): "Any additional kwargs to add to the http(s) request to the origin endpoint."
dest_kwargs (dict, default={}): "Any additional kwargs to add to the http(s) request to the origin endpoint."
do_transfer_index (bool, default=True): "Flag regarding whether to transfer the index, settings and mapping as well. Set this to False if the index already exists, or you're restarting a transfer."
limit (int, default=None): "Maximum number of 'rows' of data to transfer."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for es2es, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size es2es-0.1.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page