{"id":21994517,"url":"https://github.com/codelibs/elasticsearch-configsync","last_synced_at":"2025-04-30T17:01:53.224Z","repository":{"id":35044000,"uuid":"39167983","full_name":"codelibs/elasticsearch-configsync","owner":"codelibs","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-15T12:39:11.000Z","size":284,"stargazers_count":11,"open_issues_count":4,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-16T18:17:27.766Z","etag":null,"topics":["elasticsearch","elasticsearch-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codelibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-16T00:31:26.000Z","updated_at":"2024-06-06T12:37:03.174Z","dependencies_parsed_at":"2023-12-16T05:33:24.594Z","dependency_job_id":"5e225b4a-b116-4570-87e7-89484efc70fe","html_url":"https://github.com/codelibs/elasticsearch-configsync","commit_stats":null,"previous_names":[],"tags_count":104,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-configsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-configsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-configsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-configsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/elasticsearch-configsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748929,"owners_count":21637413,"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","elasticsearch-plugin"],"created_at":"2024-11-29T21:09:32.941Z","updated_at":"2025-04-30T17:01:52.001Z","avatar_url":"https://github.com/codelibs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Elasticsearch Config Sync Module\n[![Java CI with Maven](https://github.com/codelibs/elasticsearch-configsync/actions/workflows/maven.yml/badge.svg)](https://github.com/codelibs/elasticsearch-configsync/actions/workflows/maven.yml)\n=======================\n\n## Overview\n\nConfig Sync Module provides a feature to distribute files, such as script or dictionary file, to nodes in your cluster.\nThese files are managed in .configsync index, and each node sync up with them.\n\n## Version\n\n[Versions in Maven Repository](https://repo1.maven.org/maven2/org/codelibs/elasticsearch-configsync/)\n\n### Issues/Questions\n\nPlease file an [issue](https://github.com/codelibs/elasticsearch-configsync/issues \"issue\").\n\n## Installation\n\n### 7.11 -\n\n    $ CONFIGSYNC_URL=https://repo.maven.apache.org/maven2/org/codelibs/elasticsearch-configsync/7.11.0/elasticsearch-configsync-7.11.0.zip\n    $ curl -o /tmp/configsync.zip $CONFIGSYNC_URL\n    $ mkdir -p /usr/share/elasticsearch/modules/configsync\n    $ unzip -d /usr/share/elasticsearch/modules/configsync /tmp/configsync.zip\n\n### - 7.10\n\n    $ $ES_HOME/bin/elasticsearch-plugin install org.codelibs:elasticsearch-configsync:7.10.0\n\n## Getting Started\n\n### Register File\n\n    $ curl -XPOST -H 'Content-Type:application/json' localhost:9200/_configsync/file?path=user-dict.txt --data-binary @user-dict.txt\n\nThe above request is to add file info to .configsync index.\npath parameter is a synced file location under $ES_CONF directory(ex. /etc/elasticsearch/user-dict.txt).\n\n### Get File List\n\nSend GET request without path parameter:\n\n    $ curl -XGET -H 'Content-Type:application/json' localhost:9200/_configsync/file\n    {\"acknowledged\":true,\"path\":[\"user-dict.txt\"]}\n\n### Get File\n\nSend GET request with path parameter:\n\n    $ curl -XGET -H 'Content-Type:application/json' localhost:9200/_configsync/file?path=user-dict.txt\n\n### Delete File\n\nSend DELETE request with path parameter:\n\n    $ curl -XDELETE -H 'Content-Type:application/json' localhost:9200/_configsync/file?path=user-dict.txt\n\n### Sync\n\nEach node copies a file from .configsync index periodically if the file is updated.\nThe interval time is specified by configsync.flush_interval in /etc/elasticserch/elasticsearch.yml.\nThe default value is 1m.\n\n    configsync.flush_interval: 1m\n\n### Reset\n\nTo restart a scheduler for checking .configsync index, send POST request as below:\n\n    $ curl -XPOST -H 'Content-Type:application/json' localhost:9200/_configsync/reset\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Felasticsearch-configsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Felasticsearch-configsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Felasticsearch-configsync/lists"}