{"id":16644879,"url":"https://github.com/toyama0919/ej","last_synced_at":"2025-03-16T22:31:36.541Z","repository":{"id":19391014,"uuid":"22632190","full_name":"toyama0919/ej","owner":"toyama0919","description":"Very few typing Elasticsearch Client","archived":false,"fork":false,"pushed_at":"2017-11-28T10:07:11.000Z","size":88,"stargazers_count":31,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T15:01:17.431Z","etag":null,"topics":["cli","elasticsearch","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"achiodza/practical-security-lectures","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":"2014-08-05T05:57:41.000Z","updated_at":"2019-09-09T20:41:52.000Z","dependencies_parsed_at":"2022-09-11T15:31:47.528Z","dependency_job_id":null,"html_url":"https://github.com/toyama0919/ej","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fej","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fej/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fej/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toyama0919%2Fej/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toyama0919","download_url":"https://codeload.github.com/toyama0919/ej/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243832255,"owners_count":20355074,"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":["cli","elasticsearch","ruby"],"created_at":"2024-10-12T08:12:34.851Z","updated_at":"2025-03-16T22:31:36.241Z","avatar_url":"https://github.com/toyama0919.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ej \n\n[![Build Status](https://secure.travis-ci.org/toyama0919/ej.png?branch=master)](http://travis-ci.org/toyama0919/ej)\n[![Gem Version](https://badge.fury.io/rb/ej.svg)](http://badge.fury.io/rb/ej)\n\nelasticsearch command line utility\n\nsupport ruby version \u003e= 2.1\n\n![ej4.gif](https://qiita-image-store.s3.amazonaws.com/0/26670/116a381c-98f6-aa72-fbd9-ddc4b179b744.gif)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'ej'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ej\n\n\n## Usage\n\n### simple search\n```bash\nej -s\n```\n\n### other host(default host is localhost)\n```bash\nej -s -h other_host:9201\n```\n\n### query search and index\n```bash\nej -s \"ip_address: 127.0.0.1\" -i logstash-2014.07.01 -h other_host\n```\n\n### index list\n```bash\nej -l -h other_host\n```\n\n### count\n```bash\nej -c \"log_date: 2014-01-15\" -h other_host\n```\n\n### mapping\n```bash\nej -m -h other_host\n```\n\n### delete index\n```bash\nej delete -i logstash-2014.07.01 -h other_host\n```\n\n### delete by query\n```bash\nej delete -i logstash-2014.07.01 -q '{ match: { user_id: 1 } }' -h other_host\nej delete -i logstash-2014.07.01 -q '{\"range\":{\"@timestamp\":{\"lte\":\"2014-07-01\"}}}' -h other_host\n```\n\n### copy index from remote to remote\n```bash\nej copy --source remote_host1:9200 --dest remote_host2:9200 -i logstash-2017.01.27 -q 'size: 631'\n```\n\n## monitor\n\n### node stats\n```bash\nej nodes_stats -h remote_host1\n```\n\n### settings\n```bash\nej settings -h remote_host1\n```\n\n## Contributing\n\n1. Fork it ( http://github.com/toyama0919/ej/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyama0919%2Fej","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoyama0919%2Fej","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyama0919%2Fej/lists"}