{"id":24837988,"url":"https://github.com/arsen/elastic-tools","last_synced_at":"2026-04-18T01:34:23.772Z","repository":{"id":57221330,"uuid":"131631408","full_name":"arsen/elastic-tools","owner":"arsen","description":"CLI Utilities to export/import data from elasticsearch as json","archived":false,"fork":false,"pushed_at":"2018-04-30T22:51:46.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T09:54:19.453Z","etag":null,"topics":["dump-files","elasticsearch","export-json","import-json"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/arsen.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}},"created_at":"2018-04-30T18:21:55.000Z","updated_at":"2018-04-30T22:50:59.000Z","dependencies_parsed_at":"2022-08-29T02:12:47.787Z","dependency_job_id":null,"html_url":"https://github.com/arsen/elastic-tools","commit_stats":null,"previous_names":["arsen/elastic-dump"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arsen/elastic-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsen%2Felastic-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsen%2Felastic-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsen%2Felastic-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsen%2Felastic-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsen","download_url":"https://codeload.github.com/arsen/elastic-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsen%2Felastic-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dump-files","elasticsearch","export-json","import-json"],"created_at":"2025-01-31T06:09:10.576Z","updated_at":"2026-04-18T01:34:23.758Z","avatar_url":"https://github.com/arsen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elastic-tools\n\nCLI Utilities to export/import JSON from elasticsearch\n\n## Usage\n\n### Exporting data to json\n\n```bash\nelastic-export --host 127.0.0.1:9200 --index MyIndex --out ./data.json\n```\n\nThe \\_id of the document from elastic's index will be part of the body of the exported document: \n\nFor example, this document from elastic:\n\n```json\n{\n  \"_index\": \"users\",\n  \"_type\": \"_doc\",\n  \"_id\": \"1\",\n  \"_score\": 1,\n  \"_source\": {\n    \"active\": true,\n    \"name\": \"User 1\",\n    \"email\": \"email1\"\n  }\n}\n```\nwill be exported to JSON like this:\n\n```json\n{\n  \"_id\": \"1\",\n  \"active\": true,\n  \"name\": \"User 1\",\n  \"email\": \"email1\"\n}\n```\n\n\n### Importing data from json array\n\n```bash\nelastic-import --host 127.0.0.1:9200 --index MyIndex --data ./data.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsen%2Felastic-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsen%2Felastic-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsen%2Felastic-tools/lists"}