{"id":16644857,"url":"https://github.com/toyama0919/embulk-output-elasticsearch_ruby","last_synced_at":"2025-10-30T12:31:16.001Z","repository":{"id":62557943,"uuid":"73911314","full_name":"toyama0919/embulk-output-elasticsearch_ruby","owner":"toyama0919","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-27T08:47:37.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T08:31:58.930Z","etag":null,"topics":["elasticsearch","embulk","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toyama0919.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-16T10:57:21.000Z","updated_at":"2022-05-16T06:23:07.000Z","dependencies_parsed_at":"2022-11-03T06:45:25.282Z","dependency_job_id":null,"html_url":"https://github.com/toyama0919/embulk-output-elasticsearch_ruby","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fembulk-output-elasticsearch_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fembulk-output-elasticsearch_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fembulk-output-elasticsearch_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fembulk-output-elasticsearch_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toyama0919","download_url":"https://codeload.github.com/toyama0919/embulk-output-elasticsearch_ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238968187,"owners_count":19560585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","embulk","ruby"],"created_at":"2024-10-12T08:12:31.961Z","updated_at":"2025-10-30T12:31:10.665Z","avatar_url":"https://github.com/toyama0919.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Ruby output plugin for Embulk\n\n[![Gem Version](https://badge.fury.io/rb/embulk-output-elasticsearch_ruby.svg)](http://badge.fury.io/rb/embulk-output-elasticsearch_ruby)\n[![Build Status](https://secure.travis-ci.org/toyama0919/embulk-output-elasticsearch_ruby.png?branch=master)](http://travis-ci.org/toyama0919/embulk-output-elasticsearch_ruby)\n\nDumps records to Elasticsearch Ruby. Elasticsearch 1.X AND 2.X AND 5.X compatible.\n\n## Overview\n\n* **Plugin type**: output\n* **Load all or nothing**: no\n* **Resume supported**: no\n* **Cleanup supported**: yes\n\n## Configuration\n- **nodes** nodes (array, default: [{ 'host' =\u003e 'localhost', 'port' =\u003e 9200 }])\n    - **host** host (string)\n    - **port** port (string)\n- **request_timeout** request timeout (integer, default: 60)\n- **index_type** index type (string)\n- **mode** mode (string, default: 'normal')\n- **reload_connections** reload connections (bool, default: true)\n- **reload_on_failure** reload on failure (bool, default: false)\n- **delete_old_index** delete old index (bool, default: false)\n- **delete_old_alias** delete old alias (bool, default: true)\n- **id_keys** id keys (array, default: nil)\n- **id_format** id format (string, default: nil)\n- **array_columns** array columns (array, default: nil)\n- **bulk_actions** bulk actions (integer, default: 1000)\n- **retry_on_failure** retry on failure (integer, default: 5)\n- **current_index_name** current index name (string, default: nil)\n- **index** index (string, default: 'logstash-%Y.%m.%d')\n- **before_delete_index** before delete index (bool, default: false)\n- **before_template_name** before template name (string, default: nil)\n- **before_template** before template (hash, default: nil)\n\n## Example(minimum settings)\n\n```yaml\nout:\n  type: elasticsearch_ruby\n  nodes:\n    - {host: localhost, port: 9200}\n  index_type: page\n```\n\n## Example(update mode)\n\n```yaml\nout:\n  type: elasticsearch_ruby\n  nodes:\n    - {host: {{ env.ES_HOST }}, port: 9200}\n  index: crawl\n  index_type: page\n  bulk_actions: 1000\n  request_timeout: 60\n  mode: update\n  id_format: \"%s\"\n  id_keys:\n    - _id\n```\n\n## Example(replace mode)\n\n```yaml\nout:\n  type: elasticsearch_ruby\n  nodes:\n    - {host: localhost, port: 9200}\n  index: test_alias\n  index_type: crawl_companies\n  mode: replace\n  delete_old_index: true\n  before_delete_index: true\n  bulk_actions: 1000\n  request_timeout: 60\n```\n\n* create alias \n\n## Build\n\n```\n$ rake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyama0919%2Fembulk-output-elasticsearch_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoyama0919%2Fembulk-output-elasticsearch_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyama0919%2Fembulk-output-elasticsearch_ruby/lists"}