
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
elasticsearch-index-transfer
Advanced tools
Ruby gem for transfering elasticsearch index data from one source to another. Currently this gem can transfer elasticsearch index data between
This gem is using scroll API provided by elasticsearch for backing up the elasticsearch index data.
Add this line to your application's Gemfile:
gem 'elasticsearch-index-transfer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install elasticsearch-index-transfer
If you are using irb console
require 'elasticsearch-index-transfer'
options = {
"source": {
"elasticsearch": {
"host": * source-host-ip *,
"port": * source-host-port *,
"index": * elasticsearch-index-name *
}
},
"target": {
"elasticsearch": {
"host": * target-host-ip *,
"port": * target-host-port *,
"index": * elasticsearch-index-name *
}
}
}
Elasticsearch::Index::Transfer.execute(options)
options = {
"source": {
"elasticsearch": {
"host": * source-host-ip *,
"port": * source-host-port *,
"index": * elasticsearch-index-name *
}
},
"target": {
"s3": {
"region": * S3-region-name *,
"access_key_id": * S3-access-key-id *,
"secret_access_key": * S3-secret-access-key *,
"bucket": * S3-bucket-name *,
"prefix": * S3-folder/prefix * # optional
}
}
}
Elasticsearch::Index::Transfer.execute(options)
This gem can only transfer data from AWS S3 to elasticsearch host only if backup on S3 is made by this gem only.
options = {
"source": {
"s3": {
"region": * S3-region-name *,
"access_key_id": * S3-access-key-id *,
"secret_access_key": * S3-secret-access-key *,
"bucket": * S3-bucket-name *,
"prefix": * S3-folder/prefix * # optional
}
},
"target": {
"elasticsearch": {
"host": * targer-host-ip *,
"port": * target-host-port *,
"index": * elasticsearch-index-name * # if index name not given it will use index name of backed up index.
}
},
}
Elasticsearch::Index::Transfer.execute(options)
rspec spec/elasticsearch-index-transfer.rb
Issue Tracker: https://github.com/imran3180/elasticsearch-index-transfer/issues
Pull Request: https://github.com/imran3180/elasticsearch-index-transfer/pulls
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that elasticsearch-index-transfer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.